Skip to content

MessageId.ToString(string?, IFormatProvider?)

ToString(string?, IFormatProvider?)

View source
public string ToString(string? format, IFormatProvider? formatProvider)
Formats the value of the current instance using the specified format.

Parameters

formatstring?
The format to use. -or- A null reference (Nothing in Visual Basic) to use the default format defined for the type of the System.IFormattable implementation.
formatProviderIFormatProvider?
The provider to use to format the value. -or- A null reference (Nothing in Visual Basic) to obtain the numeric format information from the current locale setting of the operating system.

Returns

The value of the current instance in the specified format.