XPathSettings.XPathVersion PropertyXPathSettings.XPathVersion PropertyXPathSettings::XPathVersion Property

Gets or sets the version of XPath to use for parsing

Syntax

Public Property XPathVersion As XPathVersion
        Get
        Set(ByVal value As XPathVersion)
public XPathVersion XPathVersion { get; set; }
public:
property XPathVersion XPathVersion {
    XPathVersion get();
    void set(XPathVersion value);
}
 

Property Value

Type: XmlPrime.XPathVersionXmlPrime.XPathVersionXmlPrime::XPathVersion

A XPathVersionXPathVersionXPathVersion value indicating which version of the specification should be used.

Exceptions

ExceptionCondition
ArgumentExceptionArgumentExceptionArgumentExceptionRaised if the specified version is not supported.

Remarks

The default value of this property is the latest version of XPath which is fully supported. Currently this is XPath31XPath31XPath31.

Settings this value determines the set of available functions for use within XPath expressions and determines the version of XPath to use when parsing.