XPathAtomicValue.ValueAsDuration PropertyXPathAtomicValue.ValueAsDuration PropertyXPathAtomicValue::ValueAsDuration Property

Gets the item's value as a DurationDurationDuration. Gets the item's value as a decimalDecimaldecimal.

Syntax

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

Property Value

Type: XmlPrime.DurationXmlPrime.DurationXmlPrime::Duration

The item's value as a DurationDurationDuration. The item's value as a decimalDecimaldecimal.

Exceptions

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