XmlConvert.ToUInt16(String) 메서드

정의

Important

이 API는 CLS 규격이 아닙니다.

해당 값으로 String 변환합니다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

매개 변수

s
String

변환할 문자열입니다.

반품

UInt16 문자열에 해당하는 값입니다.

특성

예외

snull입니다.

s 가 올바른 형식이 아닙니다.

sUInt16.MinValue 보다 작거나 UInt16.MaxValue보다 큰 숫자를 나타냅니다.

적용 대상