Sitecore 5.1.1 API

MainUtil.GuidToString Method (Guid, String)

Converts guid to string.

[Visual Basic]
Overloads Public Shared Function GuidToString( _
   ByVal guid As Guid, _
   ByVal _default As String _
) As String
[C#]
public static string GuidToString(
   Guid guid,
   string _default
);

Parameters

guid
A guid.
_default

Return Value

The guid as a string with the format "{XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX}".

Example

  string s = MainUtil.GuidToString(Guids.Null); // "{00000000-0000-0000-0000-000000000000}"

See Also

MainUtil Class | Sitecore Namespace | MainUtil.GuidToString Overload List