Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

Enum::IFormattable::ToString Method

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).

Namespace:  System
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::String
The string representation of the value of this instance, as specified by format.

Implements

IFormattable::ToString(String, IFormatProvider)

ExceptionCondition
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.

Portable Class Library

Supported in: Portable Class Library

Community Additions

ADD
Show:
© 2015 Microsoft