XmlConvert.ToInt16(String) Metoda

Definicja

Konwertuje element String na Int16 odpowiednik.

public:
 static short ToInt16(System::String ^ s);
public static short ToInt16 (string s);
static member ToInt16 : string -> int16
Public Shared Function ToInt16 (s As String) As Short

Parametry

s
String

Ciąg do konwersji.

Zwraca

Odpowiednik Int16 ciągu.

Wyjątki

s nie ma poprawnego formatu.

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

Dotyczy