Bagikan melalui


BindConverter.TryConvertToShort(Object, CultureInfo, Int16) Metode

Definisi

Mencoba mengonversi nilai menjadi Int16.

public:
 static bool TryConvertToShort(System::Object ^ obj, System::Globalization::CultureInfo ^ culture, [Runtime::InteropServices::Out] short % value);
public static bool TryConvertToShort (object? obj, System.Globalization.CultureInfo? culture, out short value);
static member TryConvertToShort : obj * System.Globalization.CultureInfo * int16 -> bool
Public Shared Function TryConvertToShort (obj As Object, culture As CultureInfo, ByRef value As Short) As Boolean

Parameter

obj
Object

Objek yang akan dikonversi.

culture
CultureInfo

yang CultureInfo digunakan untuk konversi.

value
Int16

Nilai yang dikonversi.

Mengembalikan

true jika konversi berhasil, jika tidak false.

Berlaku untuk