XmlConvert.ToUInt16(String) Methode

Definitie

Belangrijk

Deze API is niet CLS-conform.

Converteert het String naar een UInt16 equivalent.

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

Parameters

s
String

De tekenreeks die moet worden geconverteerd.

Retouren

Een UInt16 equivalent van de tekenreeks.

Kenmerken

Uitzonderingen

s heeft niet de juiste indeling.

s vertegenwoordigt een getal kleiner dan UInt16.MinValue of groter dan UInt16.MaxValue.

Van toepassing op