Guid.IFormattable.ToString(String, IFormatProvider) Guid.IFormattable.ToString(String, IFormatProvider) Guid.IFormattable.ToString(String, IFormatProvider) Method

Definition

Returns a string representation of the value of this instance, according to the provided format specifier and culture-specific format information.

 virtual System::String ^ System.IFormattable.ToString(System::String ^ format, IFormatProvider ^ provider) = IFormattable::ToString;
string IFormattable.ToString (string format, IFormatProvider provider);
Function ToString (format As String, provider As IFormatProvider) As String Implements IFormattable.ToString

Parameters

format
String String String

A single format specifier that indicates how to format the value of the Guid. The format parameter can be "N", "D", "B", "P", or "X". If format is null or an empty string (""), "D" is used.

Returns

The value of this Guid represented as a series of lowercase hexadecimal digits in the specified format.

Implements

Exceptions

The value of format is not null, an empty string (""), or one of the following single format specifiers:"N", "D", "B", "P", or "X".

Applies to