ToByte()

XmlConvert::ToByte(const String&) method

Converts the String to a Byte equivalent.

static uint8_t System::Xml::XmlConvert::ToByte(const String &s)

Arguments

ParameterTypeDescription
sconst String&The string to convert.

Return Value

A Byte equivalent of the string.

Exceptions

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

See Also