Bagikan melalui


BindConverter.TryConvertToNullableShort Metode

Definisi

Mencoba mengonversi nilai menjadi nullable Int16.

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

Parameter

obj
Object

Objek yang akan dikonversi.

culture
CultureInfo

yang CultureInfo digunakan untuk konversi.

value
Nullable<Int16>

Nilai yang dikonversi.

Mengembalikan

true jika konversi berhasil, jika tidak false.

Berlaku untuk