次の方法で共有


BindConverter.TryConvertToNullableInt メソッド

定義

値を null 許容 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は 。

適用対象