共用方式為


BindConverter.TryConvertToDouble(Object, CultureInfo, Double) 方法

定義

嘗試將值 Double 轉換成 。

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

參數

obj
Object

要轉換的物件。

culture
CultureInfo

CultureInfo要用於轉換的 。

value
Double

轉換的值。

傳回

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

適用於