XmlConvert.ToUInt16(String) Metoda

Definicja

Ważne

Ten interfejs API nie jest zgodny ze specyfikacją CLS.

Konwertuje element String na UInt16 odpowiednik.

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

Parametry

s
String

Ciąg do konwersji.

Zwraca

Odpowiednik UInt16 ciągu.

Atrybuty

Wyjątki

s nie ma poprawnego formatu.

s reprezentuje liczbę mniejszą niż UInt16.MinValue lub większą niż UInt16.MaxValue.

Dotyczy