Returns a String representation of the value of this Guid instance, according to the provided format specifier.
Public Function ToString ( _ format As String _ ) As String
Dim instance As Guid Dim format As String Dim returnValue As String returnValue = instance.ToString(format)
public string ToString( string format )
public: String^ ToString( String^ format )
public function ToString( format : String ) : String
The value of format is not nullNothingnullptra null reference (Nothing in Visual Basic), the empty string (""), "N", "D", "B", or "P".
The format parameter can contain the following format specifiers. In the table that follows, all digits in the return value are hexadecimal. Each character 'x' represents a hexadecimal digit; each hyphen ('-'), bracket ('{', '}'), and parenthesis ('(', ')') appears as shown.
Specifier
Format of Return Value
N
32 digits:
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
D
32 digits separated by hyphens:
xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
B
32 digits separated by hyphens, enclosed in brackets:
{xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx}
P
32 digits separated by hyphens, enclosed in parentheses:
(xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx)
Windows 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98, Windows CE, Windows Mobile for Smartphone, Windows Mobile for Pocket PC, Xbox 360, Zune