Enum.IFormattable.ToString(String, IFormatProvider) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Caution
The provider argument is not used. Please use ToString(String).
This method overload is obsolete; use ToString(String).
virtual System::String ^ System.IFormattable.ToString(System::String ^ format, IFormatProvider ^ provider) = IFormattable::ToString;
[System.Obsolete("The provider argument is not used. Please use ToString(String).")]
string IFormattable.ToString (string format, IFormatProvider provider);
[<System.Obsolete("The provider argument is not used. Please use ToString(String).")>]
abstract member System.IFormattable.ToString : string * IFormatProvider -> string
override this.System.IFormattable.ToString : string * IFormatProvider -> string
Function ToString (format As String, provider As IFormatProvider) As String Implements IFormattable.ToString
Parameters
- format
- String
A format specification.
- provider
- IFormatProvider
An IFormatProvider implementation that supplies culture-specific information about the format of the returned value. This argument is not used.
Returns
The string representation of the value of this instance, as specified by format
.
Implements
- Attributes
Exceptions
format
does not contain a valid format specification.
format
equals "X", but the enumeration type is unknown.