XmlConvert.ToUInt16(String) Méthode

Définition

Important

Cette API n’est pas conforme CLS.

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

public:
 static System::UInt16 ToUInt16(System::String ^ s);
[System.CLSCompliant(false)]
public static ushort ToUInt16 (string s);
[<System.CLSCompliant(false)>]
static member ToUInt16 : string -> uint16
Public Shared Function ToUInt16 (s As String) As UShort

Paramètres

s
String

Chaîne à convertir.

Retours

Équivalent UInt16 de la chaîne.

Attributs

Exceptions

s a la valeur null.

Le format de s est incorrect.

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

S’applique à