ToByte Method (Char)

Convert.ToByte Method (Char)

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Converts the value of the specified Unicode character to the equivalent 8-bit unsigned integer.

Namespace:  System
Assembly:  mscorlib (in mscorlib.dll)

'Declaration
Public Shared Function ToByte ( _
	value As Char _
) As Byte

Parameters

value
Type: System.Char
A Unicode character.

Return Value

Type: System.Byte
The 8-bit unsigned integer equivalent to value.

ExceptionCondition
OverflowException

value is greater than Byte.MaxValue.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft