Conversions.ToUShort Metodo

Definizione

Converte l'oggetto specificato in un valore Ushort.

Overload

ToUShort(Object)

Converte un oggetto in un valore Ushort.

ToUShort(String)

Converte una stringa in un valore Ushort.

ToUShort(Object)

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

Importante

Questa API non è conforme a CLS.

Alternativa conforme a CLS
Microsoft.VisualBasic.CompilerServices.Conversions.ToShort(Object)

Converte un oggetto in un valore Ushort.

public:
 static System::UInt16 ToUShort(System::Object ^ Value);
[System.CLSCompliant(false)]
public static ushort ToUShort (object Value);
[System.CLSCompliant(false)]
public static ushort ToUShort (object? Value);
[<System.CLSCompliant(false)>]
static member ToUShort : obj -> uint16
Public Shared Function ToUShort (Value As Object) As UShort

Parametri

Value
Object

Oggetto da convertire.

Restituisce

Valore Ushort dell'oggetto.

Attributi

Si applica a

ToUShort(String)

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

Importante

Questa API non è conforme a CLS.

Alternativa conforme a CLS
Microsoft.VisualBasic.CompilerServices.Conversions.ToShort(String)

Converte una stringa in un valore Ushort.

public:
 static System::UInt16 ToUShort(System::String ^ Value);
[System.CLSCompliant(false)]
public static ushort ToUShort (string Value);
[System.CLSCompliant(false)]
public static ushort ToUShort (string? Value);
[<System.CLSCompliant(false)>]
static member ToUShort : string -> uint16
Public Shared Function ToUShort (Value As String) As UShort

Parametri

Value
String

Stringa da convertire.

Restituisce

Valore Ushort della stringa.

Attributi

Si applica a