Enum..::..ToString Method (String)
Converts the value of this instance to its equivalent string representation using the specified format.
Namespace:
SystemAssembly: Bridge (in Bridge.dll)
Syntax
[TemplateAttribute] public string ToString( string format )
<TemplateAttribute> _ Public Function ToString ( _ format As String _ ) As String
[TemplateAttribute] public: String^ ToString( String^ format )
Parameters
- format
- Type: System..::..String
A format string.
Return Value
The string representation of the value of this instance as specified by format.Exceptions
Exception | Condition |
---|---|
System..::..FormatException | format contains an invalid specification. |
System..::..InvalidOperationException | format equals "X", but the enumeration type is unknown. |