Enum.ToString Method (String, IFormatProvider)
Note: This API is now obsolete.
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
This method overload is obsolete; use Enum.ToString(String).
Assembly: mscorlib (in mscorlib.dll)
[ObsoleteAttribute("The provider argument is not used. Please use ToString(String).")] public string ToString( string format, IFormatProvider provider )
Parameters
- format
- Type: System.String
A format specification.
- provider
- Type: System.IFormatProvider
(obsolete)
Return Value
Type: System.StringThe string representation of the value of this instance, as specified by format.
Implements
IFormattable.ToString(String, IFormatProvider)| Exception | Condition |
|---|---|
| FormatException | format does not contain a valid format specification. |
Show: