Partager via


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

Définition

Tente de convertir une valeur 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

Paramètres

obj
Object

Objet à convertir.

culture
CultureInfo

à utiliser pour la CultureInfo conversion.

value
Int16

Valeur convertie.

Retours

true si la conversion réussit, sinon false.

S’applique à