共用方式為


BindConverter.TryConvertToNullableDecimal 方法

定義

嘗試將值轉換成可為 Decimal Null 的 。

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

參數

obj
Object

要轉換的物件。

culture
CultureInfo

CultureInfo要用於轉換的 。

value
Nullable<Decimal>

轉換的值。

傳回

true 如果轉換成功,則為 ,否則 false 為 。

適用於