Click or drag to resize
EnumToString Method (String)
Converts the value of this instance to its equivalent string representation using the specified format.

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

Parameters

format
Type: SystemString
A format string.

Return Value

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