Aracılığıyla paylaş


Conversions.ToUShort Yöntem

Tanım

Belirtilen nesneyi bir Ushort değere dönüştürür.

Aşırı Yüklemeler

ToUShort(Object)

Nesneyi değere Ushort dönüştürür.

ToUShort(String)

Dizeyi değere Ushort dönüştürür.

ToUShort(Object)

Kaynak:
Conversions.vb
Kaynak:
Conversions.vb
Kaynak:
Conversions.vb

Önemli

Bu API, CLS uyumlu değildir.

CLS uyumlu alternatif
Microsoft.VisualBasic.CompilerServices.Conversions.ToShort(Object)

Nesneyi değere Ushort dönüştürür.

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

Parametreler

Value
Object

Dönüştürülecek nesne.

Döndürülenler

Ushort Nesnesinin değeri.

Öznitelikler

Şunlara uygulanır

ToUShort(String)

Kaynak:
Conversions.vb
Kaynak:
Conversions.vb
Kaynak:
Conversions.vb

Önemli

Bu API, CLS uyumlu değildir.

CLS uyumlu alternatif
Microsoft.VisualBasic.CompilerServices.Conversions.ToShort(String)

Dizeyi değere Ushort dönüştürür.

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

Parametreler

Value
String

Dönüştürülecek dize.

Döndürülenler

Ushort Dizenin değeri.

Öznitelikler

Şunlara uygulanır