共用方式為


BindConverter.TryConvertToLong(Object, CultureInfo, Int64) 方法

定義

嘗試將值 Int64 轉換成 。

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

參數

obj
Object

要轉換的物件。

culture
CultureInfo

CultureInfo要用於轉換的 。

value
Int64

轉換的值。

傳回

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

適用於