Guid: ToString

ToString

Returns a string representation of guid value.



 Public Function ToString(
	  Optional ByRef Format As String,
	  Optional ByVal Provider As IFormatProvider ) As String

Parameters

Format
[ByRef] Optional. String. The format of the guid value to be returned.
Provider
[ByVal] Optional. IFormatProvider. A format provider used to format the guid.

Return Values

String -  String representing of the guid.

Remarks

There are 5 format types: "D","B","N","P","X".

 "D" = 00000000-0000-0000-0000-000000000000
 "B" = {00000000-0000-0000-0000-000000000000}
 "P" = (00000000-0000-0000-0000-000000000000)
 "N" = 00000000000000000000000000000000
 "X" = {0x00000000,0x0000,0x0000,{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00}}
 
D is the default format.

See Also

Project CorLib Overview

Class Guid Overview