ToByte Method

Convert.ToByte Method

 

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

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

NameDescription
System_CAPS_pubmethodSystem_CAPS_staticToByte(Boolean)

Converts the specified Boolean value to the equivalent 8-bit unsigned integer.

System_CAPS_pubmethodSystem_CAPS_staticToByte(Byte)

Returns the specified 8-bit unsigned integer; no actual conversion is performed.

System_CAPS_pubmethodSystem_CAPS_staticToByte(Char)

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

System_CAPS_pubmethodSystem_CAPS_staticToByte(DateTime)

Calling this method always throws InvalidCastException.

System_CAPS_pubmethodSystem_CAPS_staticToByte(Decimal)

Converts the value of the specified decimal number to an equivalent 8-bit unsigned integer.

System_CAPS_pubmethodSystem_CAPS_staticToByte(Double)

Converts the value of the specified double-precision floating-point number to an equivalent 8-bit unsigned integer.

System_CAPS_pubmethodSystem_CAPS_staticToByte(Int16)

Converts the value of the specified 16-bit signed integer to an equivalent 8-bit unsigned integer.

System_CAPS_pubmethodSystem_CAPS_staticToByte(Int32)

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

System_CAPS_pubmethodSystem_CAPS_staticToByte(Int64)

Converts the value of the specified 64-bit signed integer to an equivalent 8-bit unsigned integer.

System_CAPS_pubmethodSystem_CAPS_staticToByte(Object)

Converts the value of the specified object to an 8-bit unsigned integer.

System_CAPS_pubmethodSystem_CAPS_staticToByte(Object, IFormatProvider)

Converts the value of the specified object to an 8-bit unsigned integer, using the specified culture-specific formatting information.

System_CAPS_pubmethodSystem_CAPS_staticToByte(SByte)

Converts the value of the specified 8-bit signed integer to an equivalent 8-bit unsigned integer.

System_CAPS_pubmethodSystem_CAPS_staticToByte(Single)

Converts the value of the specified single-precision floating-point number to an equivalent 8-bit unsigned integer.

System_CAPS_pubmethodSystem_CAPS_staticToByte(String)

Converts the specified string representation of a number to an equivalent 8-bit unsigned integer.

System_CAPS_pubmethodSystem_CAPS_staticToByte(String, IFormatProvider)

Converts the specified string representation of a number to an equivalent 8-bit unsigned integer, using specified culture-specific formatting information.

System_CAPS_pubmethodSystem_CAPS_staticToByte(String, Int32)

Converts the string representation of a number in a specified base to an equivalent 8-bit unsigned integer.

System_CAPS_pubmethodSystem_CAPS_staticToByte(UInt16)

Converts the value of the specified 16-bit unsigned integer to an equivalent 8-bit unsigned integer.

System_CAPS_pubmethodSystem_CAPS_staticToByte(UInt32)

Converts the value of the specified 32-bit unsigned integer to an equivalent 8-bit unsigned integer.

System_CAPS_pubmethodSystem_CAPS_staticToByte(UInt64)

Converts the value of the specified 64-bit unsigned integer to an equivalent 8-bit unsigned integer.

Return to top
Show:
© 2016 Microsoft