Click or drag to resize
EnumToString Method (String, IFormatProvider)
This method overload is obsolete; use ToString(String).

Namespace: System
Assembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax
C#
public string ToString(
	string format,
	IFormatProvider provider
)

Parameters

format
Type: SystemString
A format specification.
provider
Type: SystemIFormatProvider
(Obsolete.)

Return Value

Type: String
The string representation of the value of this instance as specified by format.
Exceptions
ExceptionCondition
FormatExceptionformat does not contain a valid format specification.
InvalidOperationExceptionformat equals "X", but the enumeration type is unknown.
See Also