XQuerySettings.EnableScript PropertyXQuerySettings.EnableScript PropertyXQuerySettings::EnableScript Property
- XmlPrime 2.5
- Other Versions ▼
Gets or sets a value indicating whetherr to enable support for .NET script modules.
Property Value
Type: System.BooleanSystem.BooleanSystem::Boolean
true
True
true
to support .NET script modules in XQuery programs; otherwise, false
False
false
.
Remarks
The default value is false
False
false
.
When enabled, a query may import a c# source file using the syntax:
import module namespace ext = "http://www.example.org/xpath-functions" at "script.cs"; ext:nativeFunction(1, "value")
XQuery scripting should be enabled only if you require script support and you are working in a fully trusted environment.