BindConverter.TryConvertToBool(Object, CultureInfo, Boolean) Metodo

Definizione

Tenta di convertire un valore in un Booleanoggetto .

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

Parametri

obj
Object

Oggetto da convertire.

culture
CultureInfo

Oggetto CultureInfo da usare per la conversione.

value
Boolean

Valore convertito.

Restituisce

true se la conversione ha esito positivo, in caso contrario false.

Si applica a