Sdílet prostřednictvím


BindConverter.TryConvertToNullableInt Metoda

Definice

Pokusí se převést hodnotu na hodnotu s možnou Int32hodnotou null.

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

Parametry

obj
Object

Převáděný objekt

culture
CultureInfo

Slouží k převodu CultureInfo .

value
Nullable<Int32>

Převedená hodnota

Návraty

true pokud je převod úspěšný, jinak false.

Platí pro