asp.net.ph

Convert.ToString Method ( Byte, Int32 )

System Namespace   Convert Class


Converts the value of an 8-bit unsigned integer to its equivalent String representation in a specified base.

[ VB ]
Overloads Public Shared Function ToString ( _
   ByVal value As Byte, _
   ByVal toBase As Integer _
) As String

[ C# ]
public static string ToString ( 
   byte value,
   int toBase
);

[ C++ ]
public: static String* ToString ( 
   unsigned char value,
   int toBase
);

[ JScript ]
public static function ToString (
   value : Byte,
   toBase : int
) : String;

Parameters

value
An 8-bit unsigned integer.
toBase
The base of the return value, which must be 2, 8, 10, or 16.

Return Value

The String representation of value in base toBase.

Exceptions


Exception Type Condition
ArgumentException toBase is not 2, 8, 10, or 16.

See Also

Convert Members   Convert.ToString Overload List   Byte 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