共用方式為


BindConverter.TryConvertToFloat(Object, CultureInfo, Single) 方法

定義

嘗試將值轉換為 Single

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

參數

obj
Object

要轉換的物件。

culture
CultureInfo

CultureInfo要用於轉換的 。

value
Single

轉換的值。

傳回

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

適用於