Bagikan melalui


BindConverter.TryConvertToNullableFloat Metode

Definisi

Mencoba untuk mengonversi nilai menjadi nullable Single.

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

Objek yang akan dikonversi.

culture
CultureInfo

yang CultureInfo digunakan untuk konversi.

value
Nullable<Single>

Nilai yang dikonversi.

Mengembalikan

true jika konversi berhasil, jika tidak false.

Berlaku untuk