Compartir a través de


BindConverter.TryConvertToNullableInt Método

Definición

Intenta convertir un valor en un que acepta Int32valores 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

Parámetros

obj
Object

Objeto que se va a convertir.

culture
CultureInfo

que CultureInfo se va a usar para la conversión.

value
Nullable<Int32>

El valor convertido.

Devoluciones

true es si la conversión es correcta; de lo contrario false, es .

Se aplica a