ToInt32()

XmlConvert::ToInt32(const String&) method

Converts the String to a Int32 equivalent.

static int32_t System::Xml::XmlConvert::ToInt32(const String &s)

Arguments

ParameterTypeDescription
sconst String&The string to convert.

Return Value

An Int32 equivalent of the string.

Exceptions

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

See Also