Bagikan melalui


BindConverter.TryConvertToDecimal(Object, CultureInfo, Decimal) Metode

Definisi

Mencoba mengonversi nilai menjadi Decimal.

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

Parameter

obj
Object

Objek yang akan dikonversi.

culture
CultureInfo

yang CultureInfo digunakan untuk konversi.

value
Decimal

Nilai yang dikonversi.

Mengembalikan

true jika konversi berhasil, jika tidak false.

Berlaku untuk