Aracılığıyla paylaş


BindConverter.TryConvertToNullableInt Yöntem

Tanım

Bir değeri null atanabilir Int32değerine dönüştürmeyi dener.

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

Parametreler

obj
Object

Dönüştürülecek nesne.

culture
CultureInfo

CultureInfo Dönüştürme için kullanılacak.

value
Nullable<Int32>

Dönüştürülen değer.

Döndürülenler

true dönüştürme başarılı olursa, aksi takdirde false.

Şunlara uygulanır