XmlConvert.ToUInt16(String) Methode

Definition

Wichtig

Diese API ist nicht CLS-kompatibel.

Wandelt den String Wert in eine Entsprechung um 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

Parameter

s
String

Die zu konvertierende Zeichenfolge

Gibt zurück

Eine UInt16 Entsprechung der Zeichenfolge.

Attribute

Ausnahmen

s ist null.

s ist nicht im richtigen Format vorhanden.

s stellt eine Zahl kleiner als UInt16.MinValue oder größer als UInt16.MaxValue dar.

Gilt für: