NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

Convert.ToByte (Object)

Converts an object to an 8-bit unsigned byte.

[Visual Basic]
Overloads Public Shared Function ToByte( _
   ByVal value As Object _
) As Byte
[C#]
public static byte ToByte(
   object value
);
[C++]
public: static unsigned char ToByte(
   Object* value
);
[JScript]
public static function ToByte(
   value : Object
) : Byte;

Parameters

value
The object to be converted.

Return Value

The converted value.

Exceptions

Exception Type Condition
InvalidCastException The object cannot be coerced to a Byte.

See Also

Convert Class | Convert Members | System Namespace | Convert.ToByte Overload List