Conversions.ToUShort Methode

Definition

Konvertiert das angegebene Objekt in einen Ushort-Wert.

Überlädt

ToUShort(Object)

Konvertiert ein Objekt in einen Ushort-Wert.

ToUShort(String)

Konvertiert eine Zeichenfolge in einen Ushort-Wert.

ToUShort(Object)

Quelle:
Conversions.vb
Quelle:
Conversions.vb
Quelle:
Conversions.vb

Wichtig

Diese API ist nicht CLS-kompatibel.

CLS-kompatible Alternative
Microsoft.VisualBasic.CompilerServices.Conversions.ToShort(Object)

Konvertiert ein Objekt in einen Ushort-Wert.

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

Parameter

Value
Object

Das zu konvertierende Objekt.

Gibt zurück

Der Ushort-Wert des Objekts.

Attribute

Gilt für:

ToUShort(String)

Quelle:
Conversions.vb
Quelle:
Conversions.vb
Quelle:
Conversions.vb

Wichtig

Diese API ist nicht CLS-kompatibel.

CLS-kompatible Alternative
Microsoft.VisualBasic.CompilerServices.Conversions.ToShort(String)

Konvertiert eine Zeichenfolge in einen Ushort-Wert.

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

Parameter

Value
String

Die zu konvertierende Zeichenfolge.

Gibt zurück

Der Ushort-Wert der Zeichenfolge.

Attribute

Gilt für: