LibrarySet.Add Method (XQuerySettings, string, string[])LibrarySet.Add Method (XQuerySettings, String, String())LibrarySet::Add Method (XQuerySettings^, String^, array<String^>^)

Compiles the specified XQuery library module with the specified location hints and adds it to this LibrarySetLibrarySetLibrarySet. Default static context settings are used.

Syntax

Public Sub Add( _
    settings As XQuerySettings, _
    targetNamespace As String, _
    locationHints As String[] _
)
public void Add(
    XQuerySettings settings,
    string targetNamespace,
    string[] locationHints
)
public:
void Add(
    XQuerySettings^ settings, 
    String^ targetNamespace, 
    array<String^> locationHints
)
 

Parameters

settings

Type: XmlPrime.XQuerySettingsXmlPrime.XQuerySettingsXmlPrime::XQuerySettings^

The initial static context settings.

targetNamespace

Type: System.StringSystem.StringSystem::String^

The target namespace.

locationHints

Type: System.String[]System.String()array<System::String^>^

The location hints.

Exceptions

ExceptionCondition
ArgumentNullExceptionArgumentNullExceptionArgumentNullException settings, targetNamespace or locationHints is null a null reference (Nothing in Visual Basic) nullptr.
XdmExceptionXdmExceptionXdmExceptionAn error occurred compiling the module.

Remarks

Any errors or warnings encountered during compilation raise the CompilationErrorCompilationErrorCompilationError event. If nothing subscribes to this event then an XdmExceptionXdmExceptionXdmException is thrown if an unrecoverable error is encountered. If this event is subscribed to then the exception is not thrown, and this method has no effect.