Compartir a través de


BindConverter.TryConvertToInt(Object, CultureInfo, Int32) Método

Definición

Intenta convertir un valor en .Int32

public:
 static bool TryConvertToInt(System::Object ^ obj, System::Globalization::CultureInfo ^ culture, [Runtime::InteropServices::Out] int % value);
public static bool TryConvertToInt (object obj, System.Globalization.CultureInfo culture, out int value);
public static bool TryConvertToInt (object? obj, System.Globalization.CultureInfo? culture, out int value);
static member TryConvertToInt : obj * System.Globalization.CultureInfo * int -> bool
Public Shared Function TryConvertToInt (obj As Object, culture As CultureInfo, ByRef value As 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
Int32

El valor convertido.

Devoluciones

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

Se aplica a