XPathAtomicValue.ValueAsGYearMonth PropertyXPathAtomicValue.ValueAsGYearMonth PropertyXPathAtomicValue::ValueAsGYearMonth Property

Gets the item's value as a GYearMonthGYearMonthGYearMonth.

Syntax

Public Overridable ReadOnly Property ValueAsGYearMonth As GYearMonth
        Get
public virtual GYearMonth ValueAsGYearMonth { get; }
public:
virtual property GYearMonth ValueAsGYearMonth {
    GYearMonth get();
}
 

Exceptions

ExceptionCondition
OverflowExceptionOverflowExceptionOverflowExceptionThe value was too large to be stored in a GYearMonthGYearMonthGYearMonth
FormatExceptionFormatExceptionFormatExceptionThe value was not a valid lexical value for xs:gYearMonth.
InvalidCastExceptionInvalidCastExceptionInvalidCastExceptionThe value cannot be cast to xs:gYearMonth.