Guid: ToString

ToString

Returns a string representation of guid value.



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

Parameters

format
[ByVal] 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 4 format types: "D","B","N","P".

 "D" = XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
 "B" = {XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX}
 "P" = (XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX)
 "N" = XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
 
B is the default format.

See Also

Project VBCorLib Overview Class Guid Overview Guid Properties Guid Methods ToProgramID