Sitecore 5.1.1 API

MainUtil.GetNewID Method 

Generates a new GUID.

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

Return Value

The GUID as a string.

Example

  string id = MainUtil.GetNewID();

See Also

MainUtil Class | Sitecore Namespace