BindConverter.TryConvertToNullableInt Methode

Definition

Versucht, einen Wert in einen NULLable Int32zu konvertieren.

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

Parameter

obj
Object

Das zu konvertierende Objekt.

culture
CultureInfo

Die CultureInfo , die für die Konvertierung verwendet werden soll.

value
Nullable<Int32>

Der konvertierte Wert.

Gibt zurück

true , wenn die Konvertierung erfolgreich ist, andernfalls false.

Gilt für: