Bagikan melalui


BindConverter.TryConvertToNullableDecimal Metode

Definisi

Mencoba mengonversi nilai menjadi nullable Decimal.

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

Parameter

obj
Object

Objek yang akan dikonversi.

culture
CultureInfo

yang CultureInfo digunakan untuk konversi.

value
Nullable<Decimal>

Nilai yang dikonversi.

Mengembalikan

true jika konversi berhasil, jika tidak false.

Berlaku untuk