XPathFunctionItem.ValueAsDateTime PropertyXPathFunctionItem.ValueAsDateTime PropertyXPathFunctionItem::ValueAsDateTime Property

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

Syntax

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

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.