Converts a 32-bit signed integer to a string using a specified base.
[Visual Basic] Overloads Public Shared Function ToString( _ ByVal value As Integer, _ ByVal toBase As Integer _ ) As String [C#] public static string ToString( int value, int toBase ); [C++] public: static String* ToString( int value, int toBase ); [JScript] public static function ToString( value : int, toBase : int ) : String;
The converted value.
Exception Type | Condition |
---|---|
ArgumentException | if fromBase is not 2, 8, 10, or 16. |
Convert Class | Convert Members | System Namespace | Convert.ToString Overload List