asp.net.ph

Enum.ToString Method ( String )

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;

Parameters

format
A format string.

Return Value

The string representation of the value of this instance as specified by format.

Exceptions


Exception Type Condition
FormatException format contains an invalid specification.

Remarks

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.

See Also

Enum Members   Enum.ToString Overload List   Format   Parse Skip Navigation Links




Home
Suggested Reading


Previous page Back to top Next page

© 2000-2010 Rey Nuñez All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note

You can help support asp.net.ph