ToUInt16()

XmlConvert::ToUInt16(const String&) method

Converts the String to a UInt16 equivalent.

static uint16_t System::Xml::XmlConvert::ToUInt16(const String &s)

Arguments

ParameterTypeDescription
sconst String&The string to convert.

Return Value

A UInt16 equivalent of the string.

Exceptions

ExceptionDescription
ArgumentNullExceptions is nullptr.
FormatExceptions is not in the correct format.
OverflowExceptions represents a number less than UInt16::MinValue or greater than UInt16::MaxValue.

See Also