Sitecore 5.1.1 API

MainUtil.GenerateShortID Method 

Generates a short unique ID.

[Visual Basic]
Public Shared Function GenerateShortID() As String
[C#]
public static string GenerateShortID();

Return Value

A short unique ID like "scid12".

Remarks

The serial number is generated from a threadsafe counter.

Example

  string myID = MainUtil.GenerateShortID(); // "scid1"

See Also

MainUtil Class | Sitecore Namespace