MarkLogic XDBC.NET Library

IXdbcCommand.Invoke Method 

Invokes an XQuery module and returns a sequence of results.

[Visual Basic]
Function Invoke( _
   ByVal module As String, _
   ByVal database As String, _
   ByVal argNames As XmlQualifiedName() _
) As IXdbcResultSequence
[C#]
IXdbcResultSequence Invoke(
   string module,
   string database,
   XmlQualifiedName[] argNames
);

Parameters

module
The path to the module to be invoked on the server.
database
The name or id of a database to use as the context for invoking the module. Default is null, which means use the Xdbc server's default database
argNames
An ordered array of XmlQualifiedName objects representing the names of the arguments to the module. Null means no arguments.

Return Value

The resulting IXdbcResultSequence created by invoking the command's module.

Exceptions

Exception TypeCondition
XdbcExceptionIf a database access error occurs

See Also

IXdbcCommand Interface | MarkLogic.Xdbc Namespace