System Namespace Enum Class
Converts the value of this instance to its equivalent string representation using the specified format.
[ VB ]
<Serializable>
Overloads Public Function ToString ( _
ByVal format As String _
) As String
[ C# ]
[Serializable]
public string ToString (
string format
);
[ C++ ]
[Serializable]
public: String* ToString (
String* format
);
[JScript ]
public Serializable
function ToString (
format : String
) : String;
- format
- A format string.
The string representation of the value of this instance as specified by format.
Exception Type |
Condition |
FormatException |
format contains an invalid specification. |
The format parameter can contain format characters "G" or "g", "D" or "d", "X" or "x", and "F" or "f". If format is a null reference ( Nothing in Visual Basic ) or an empty string ( "" ) , the general format specifier ( "G" ) is used. For more information about these format characters, see the Remarks section of the Format method. For more information about formatting in general, see Formatting Overview.
Enum Members Enum.ToString Overload List Format Parse