XmlConvert.ToInt16(String) Méthode

Définition

Convertit la chaîne String en un équivalent Int16.

public:
 static short ToInt16(System::String ^ s);
public static short ToInt16 (string s);
static member ToInt16 : string -> int16
Public Shared Function ToInt16 (s As String) As Short

Paramètres

s
String

Chaîne à convertir.

Retours

Équivalent Int16 de la chaîne.

Exceptions

s a la valeur null.

Le format de s est incorrect.

s représente un nombre inférieur à Int16.MinValue ou supérieur à Int16.MaxValue.

S’applique à