ToByte Method

Convert.ToByte Method

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

Converts a specified value to an 8-bit unsigned integer.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

  NameDescription
Public method Static member ToByte(Boolean) Converts the value of the specified Boolean value to the equivalent 8-bit unsigned integer.
Public method Static member ToByte(Byte) Returns the specified 8-bit unsigned integer; no actual conversion is performed.
Public method Static member ToByte(Char) Converts the value of the specified Unicode character to the equivalent 8-bit unsigned integer.
Public method Static member ToByte(Decimal) Converts the value of the specified Decimal number to an equivalent 8-bit unsigned integer.
Public method Static member ToByte(Double) Converts the value of the specified double-precision floating point number to an equivalent 8-bit unsigned integer.
Public method Static member ToByte(Int16) Converts the value of the specified 16-bit signed integer to an equivalent 8-bit unsigned integer.
Public method Static member ToByte(Int32) Converts the value of the specified 32-bit signed integer to an equivalent 8-bit unsigned integer.
Public method Static member ToByte(Int64) Converts the value of the specified 64-bit signed integer to an equivalent 8-bit unsigned integer.
Public method Static member ToByte(Object) Converts the value of the specified Object to an 8-bit unsigned integer.
Public method Static member ToByte(SByte) Converts the value of the specified 8-bit signed integer to an equivalent 8-bit unsigned integer.
Public method Static member ToByte(Single) Converts the value of the specified single-precision floating point number to an equivalent 8-bit unsigned integer.
Public method Static member ToByte(String) Converts the specified String representation of a number to an equivalent 8-bit unsigned integer.
Public method Static member ToByte(UInt16) Converts the value of the specified 16-bit unsigned integer to an equivalent 8-bit unsigned integer.
Public method Static member ToByte(UInt32) Converts the value of the specified 32-bit unsigned integer to an equivalent 8-bit unsigned integer.
Public method Static member ToByte(UInt64) Converts the value of the specified 64-bit unsigned integer to an equivalent 8-bit unsigned integer.
Public method Static member ToByte(Object, IFormatProvider) Converts the value of the specified Object to an 8-bit unsigned integer using the specified culture-specific formatting information.
Public method Static member ToByte(String, IFormatProvider) Converts the specified String representation of a number to an equivalent 8-bit unsigned integer using specified culture-specific formatting information.
Public method Static member ToByte(String, Int32) Converts the string representation of a number in a specified base to an equivalent 8-bit unsigned integer.
Top

Show:
© 2016 Microsoft