แก้ไข

แชร์ผ่าน


Conversions.ToSByte Method

Definition

Converts the specified object to an SByte value.

Overloads

ToSByte(String)

Converts a string to an SByte value.

ToSByte(Object)

Converts an object to an SByte value.

ToSByte(String)

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

Important

This API is not CLS-compliant.

CLS-compliant alternative
Microsoft.VisualBasic.CompilerServices.Conversions.ToByte(String)

Converts a string to an SByte value.

public:
 static System::SByte ToSByte(System::String ^ Value);
[System.CLSCompliant(false)]
public static sbyte ToSByte (string Value);
[System.CLSCompliant(false)]
public static sbyte ToSByte (string? Value);
[<System.CLSCompliant(false)>]
static member ToSByte : string -> sbyte
Public Shared Function ToSByte (Value As String) As SByte

Parameters

Value
String

The string to convert.

Returns

The SByte value of the string.

Attributes

Applies to

ToSByte(Object)

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

Important

This API is not CLS-compliant.

CLS-compliant alternative
Microsoft.VisualBasic.CompilerServices.Conversions.ToByte(Object)

Converts an object to an SByte value.

public:
 static System::SByte ToSByte(System::Object ^ Value);
[System.CLSCompliant(false)]
public static sbyte ToSByte (object Value);
[System.CLSCompliant(false)]
public static sbyte ToSByte (object? Value);
[<System.CLSCompliant(false)>]
static member ToSByte : obj -> sbyte
Public Shared Function ToSByte (Value As Object) As SByte

Parameters

Value
Object

The object to convert.

Returns

The SByte value of the object.

Attributes

Applies to