XPathAtomicValue.ValueAsDateTime PropertyXPathAtomicValue.ValueAsDateTime PropertyXPathAtomicValue::ValueAsDateTime Property

When overridden in a derived class, gets the item's value as a DateTimeDateDateTime.

Syntax

Public NotOverridable Overrides ReadOnly Property ValueAsDateTime As Date
        Get
public sealed override DateTime ValueAsDateTime { get; }
public:
property DateTime ValueAsDateTime {
    virtual DateTime get() sealed override;
}
 

Exceptions

ExceptionCondition
FormatExceptionFormatExceptionFormatException The item's value is not in the correct format for the DateTimeDateDateTime type.
InvalidCastExceptionInvalidCastExceptionInvalidCastException The attempted cast to DateTimeDateDateTime is not valid.