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.





















Home »
  C# Tutorial »
    System »




Array
BitConverter
Boolean
Byte
Char
Console
ConsoleKeyInfo
Convert
DateTime
DateTimeOffset
Decimal
Double
Enum
Environment
Exception
Guid
Int16
Int32
Int64
Math
OperatingSystem
Random
SByte
Single
String
StringComparer
TimeSpan
TimeZone
TimeZoneInfo
Tuple
Tuple
Tuple
Type
UInt16
UInt32
UInt64
Uri
Version