Bagikan melalui


BindConverter.TryConvertToNullableBool Metode

Definisi

Mencoba untuk mengonversi nilai menjadi nullable Boolean.

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

Parameter

obj
Object

Objek yang akan dikonversi.

culture
CultureInfo

yang CultureInfo digunakan untuk konversi.

value
Nullable<Boolean>

Nilai yang dikonversi.

Mengembalikan

true jika konversi berhasil, jika tidak false.

Berlaku untuk