get_ValueAsInt()

XPathItem::get_ValueAsInt() method

When overridden in a derived class, gets the item’s value as an Int32.

virtual int32_t System::Xml::XPath::XPathItem::get_ValueAsInt()=0

Return Value

The item’s value as an Int32.

Exceptions

ExceptionDescription
FormatExceptionThe item’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