asp.net.ph

Convert.ToByte Method ( Int32 )

System Namespace   Convert Class


Converts the value of a given 32-bit signed integer to an equivalent 8-bit unsigned integer.

[ VB ]
Overloads Public Shared Function ToByte ( _
   ByVal value As Integer _
) As Byte

[ C# ]
public static byte ToByte (
   int value
);

[ C++ ]
public: static unsigned char ToByte (
   int value
);

[ JScript ]
public static function ToByte (
   value : int
) : Byte;

Parameters

value
A 32-bit signed integer.

Return Value

The 8-bit unsigned integer equivalent of value.

Exceptions


Exception Type Condition
OverflowException value is less than Byte.MinValue or greater than Byte.MaxValue.

See Also

Convert Members   Convert.ToByte Overload List   Int32 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