Compartir a través de


BindConverter.TryConvertToShort(Object, CultureInfo, Int16) Método

Definición

Intenta convertir un valor en .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

Parámetros

obj
Object

Objeto que se va a convertir.

culture
CultureInfo

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

value
Int16

El valor convertido.

Devoluciones

true es si la conversión se realiza correctamente; de lo contrario false, es .

Se aplica a