get_ValueAsInt()

XmlAtomicValue::get_ValueAsInt() method

Returns the validated XML element or attribute’s value as an Int32.

int32_t System::Xml::Schema::XmlAtomicValue::get_ValueAsInt() override

Return Value

The validated XML element or attribute’s value as an Int32.

Exceptions

ExceptionDescription
FormatExceptionThe validated XML element or attribute’s value is not in the correct format for the Int32 type.
InvalidCastExceptionThe attempted cast to Int32 is not valid.
OverflowExceptionThe attempted cast resulted in an overflow.

See Also