Conversions.ToUShort Metodo

Definizione

Converte l'oggetto specificato in un Ushort valore.

Overload

Nome Descrizione
ToUShort(Object)

Converte un oggetto in un Ushort valore.

ToUShort(String)

Converte una stringa in un Ushort valore.

ToUShort(Object)

Importante

Questa API non è conforme a CLS.

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

Converte un oggetto in un Ushort valore.

public:
 static System::UInt16 ToUShort(System::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.

Valori restituiti

Valore Ushort dell'oggetto .

Attributi

Si applica a

ToUShort(String)

Importante

Questa API non è conforme a CLS.

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

Converte una stringa in un Ushort valore.

public:
 static System::UInt16 ToUShort(System::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.

Valori restituiti

Valore Ushort della stringa.

Attributi

Si applica a