BindConverter.TryConvertToNullableLong 方法

定义

尝试将值转换为可以为 null 的 Int64

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

参数

obj
Object

要转换的对象。

culture
CultureInfo

CultureInfo要用于转换的 。

value
Nullable<Int64>

转换后的值。

返回

true 如果转换成功,则为 ;否则为 false

适用于