Aracılığıyla paylaş


BindConverter.TryConvertToNullableBool Yöntem

Tanım

Bir değeri null atanabilir Booleandeğerine dönüştürmeyi dener.

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

Parametreler

obj
Object

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

culture
CultureInfo

Dönüştürme CultureInfo için kullanılacak.

value
Nullable<Boolean>

Dönüştürülen değer.

Döndürülenler

true dönüştürme başarılı olursa, aksi takdirde false.

Şunlara uygulanır