Edit

Share via


Conversions.ToByte Method

Definition

Converts the specified object to a Byte value.

Overloads

ToByte(Object)

Converts an object to a Byte value.

ToByte(String)

Converts a string to a Byte value.

ToByte(Object)

Source:
Conversions.vb
Source:
Conversions.vb
Source:
Conversions.vb

Converts an object to a Byte value.

public:
 static System::Byte ToByte(System::Object ^ Value);
public static byte ToByte (object Value);
public static byte ToByte (object? Value);
static member ToByte : obj -> byte
Public Shared Function ToByte (Value As Object) As Byte

Parameters

Value
Object

The object to convert.

Returns

The Byte value of the object.

Applies to

ToByte(String)

Source:
Conversions.vb
Source:
Conversions.vb
Source:
Conversions.vb

Converts a string to a Byte value.

public:
 static System::Byte ToByte(System::String ^ Value);
public static byte ToByte (string Value);
public static byte ToByte (string? Value);
static member ToByte : string -> byte
Public Shared Function ToByte (Value As String) As Byte

Parameters

Value
String

The string to convert.

Returns

The Byte value of the string.

Applies to