This documentation is archived and is not being maintained.
Enum::IFormattable::ToString Method
Visual Studio 2010
This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.
This method overload is obsolete; use Enum::ToString(String).
Assembly: mscorlib (in mscorlib.dll)
private: virtual String^ ToString( String^ format, IFormatProvider^ formatProvider ) sealed = IFormattable::ToString
Parameters
- format
- Type: System::String
A format specification.
- formatProvider
- 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. |
| InvalidOperationException | format equals "X", but the enumeration type is unknown. |
This member is an explicit interface member implementation. It can be used only when the enumeration instance is cast to an IFormattable interface. The recommended alternative is to call the ToString method.
Show: