BindConverter.TryConvertToInt(Object, CultureInfo, Int32) Metodo

Definizione

Tenta di convertire un valore in un Int32oggetto .

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

Parametri

obj
Object

Oggetto da convertire.

culture
CultureInfo

Oggetto CultureInfo da usare per la conversione.

value
Int32

Valore convertito.

Restituisce

true se la conversione ha esito positivo, in caso contrario false.

Si applica a