Freigeben über


BindConverter.TryConvertToNullableFloat Methode

Definition

Versucht, einen Wert in einen Nullable Single-Wert zu konvertieren.

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

Parameter

obj
Object

Das zu konvertierende Objekt.

culture
CultureInfo

Die CultureInfo , die für die Konvertierung verwendet werden soll.

value
Nullable<Single>

Der konvertierte Wert.

Gibt zurück

true , wenn die Konvertierung erfolgreich war, andernfalls false.

Gilt für: