BindConverter.TryConvertToNullableInt 方法

定义

尝试将值转换为可为空的 Int32

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

参数

obj
Object

要转换的对象。

culture
CultureInfo

CultureInfo要用于转换的 。

value
Nullable<Int32>

转换后的值。

返回

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

适用于