EnumToString Method (String, IFormatProvider) |
Namespace: System
public string ToString( string format, IFormatProvider provider )
Exception | Condition |
---|---|
FormatException | format does not contain a valid format specification. |
InvalidOperationException | format equals "X", but the enumeration type is unknown. |