XQuerySettings.XQueryVersion PropertyXQuerySettings.XQueryVersion PropertyXQuerySettings::XQueryVersion Property
Syntax
Public Property XQueryVersion As XQueryVersion Get Set(ByVal value As XQueryVersion)
public XQueryVersion XQueryVersion { get; set; }
public: property XQueryVersion XQueryVersion { XQueryVersion get(); void set(XQueryVersion value); }
Property Value
Type: XmlPrime.XQueryVersionXmlPrime.XQueryVersionXmlPrime::XQueryVersion
An XQueryVersionXQueryVersionXQueryVersion value indicating to which version of the specification the processor should adhere.
Exceptions
Exception | Condition |
ArgumentExceptionArgumentExceptionArgumentException | Raised if the specified version is not supported. |
Remarks
The default value of this property is the latest version of XQuery which is fully supported. Currently this is XQuery30XQuery30XQuery30.
When set to XQuery10XQuery10XQuery10, if the processor encounters an XQuery module with a version declaration of "3.0", an error will be raised (err:XQST0031].
When set to XQuery30XQuery30XQuery30, if the processor encounters an XQuery module with a version declaration of "1.0", the module will be processed using the the XQuery 1.0 specification. However, the default in-scope functions will be those specified in XPath and XQuery Functions and Operators 3.0.
Settings this value determines the set of available functions for use within XQuery expressions and determines the version of XQuery to use when parsing.