C# Guid ToString(String, IFormatProvider)
Description
Guid ToString(String, IFormatProvider)
returns a string
representation of the value of this instance of the Guid class, according
to the provided format specifier and culture-specific format information.
Syntax
Guid.ToString(String, IFormatProvider)
has the following syntax.
public string ToString(
string format,
IFormatProvider provider
)
Parameters
Guid.ToString(String, IFormatProvider)
has the following parameters.
format
- A single format specifier that indicates how to format the value of this Guid. The format parameter can be "N", "D", "B", "P", or "X". If format is null or an empty string (""), "D" is used.provider
- (Reserved) An object that supplies culture-specific formatting information.
Returns
Guid.ToString(String, IFormatProvider)
method returns The value of this Guid, represented as a series of lowercase hexadecimal
digits in the specified format.