XmlConvert.ToInt32(String) Méthode

Définition

Convertit le String en équivalent Int32 .

public:
 static int ToInt32(System::String ^ s);
public static int ToInt32(string s);
static member ToInt32 : string -> int
Public Shared Function ToInt32 (s As String) As Integer

Paramètres

s
String

La chaîne à convertir.

Retours

Équivalent Int32 de la chaîne.

Exceptions

s a la valeur null.

s n’est pas au format correct.

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

S’applique à