BindConverter.TryConvertToShort(Object, CultureInfo, Int16) Metodo

Definizione

Tenta di convertire un valore in un oggetto Int16.

public:
 static bool TryConvertToShort(System::Object ^ obj, System::Globalization::CultureInfo ^ culture, [Runtime::InteropServices::Out] short % value);
public static bool TryConvertToShort (object? obj, System.Globalization.CultureInfo? culture, out short value);
static member TryConvertToShort : obj * System.Globalization.CultureInfo * int16 -> bool
Public Shared Function TryConvertToShort (obj As Object, culture As CultureInfo, ByRef value As Short) As Boolean

Parametri

obj
Object

Oggetto da convertire.

culture
CultureInfo

Oggetto CultureInfo da utilizzare per la conversione.

value
Int16

Valore convertito.

Restituisce

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

Si applica a