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

适用于