MarkLogic XCC/.Net Library

Session Methods

The methods of the Session interface are listed below. For a complete list of Session interface members, see the Session Members topic.

Public Instance Methods

Close Shutdown and invalidate this Session and release any resources it may be holding. Any currently open streaming ResultSequence objects created from this Session will also be invalidated and closed.
Commit Commit the current transaction. If no operations are pending, nothing is done. Calling commit() is only meaningful if AutoCommit is false. New Session objects are created with auto-commit set to true.
InsertContentOverloaded. Insert all the Content objects in the contentbase as a transactional unit. Upon successful return, all documents will have been committed. If an exception is thrown, none of the documents will have been committed. Note that this atomic commit behavior is true if auto-commit is true. If auto-commit is false the document set will commit or rollback with all other requests in the transaction.
NewAdhocQueryOverloaded. Create a new AdhocQuery object and initialize it with the given query string.
NewModuleInvokeOverloaded. Create a new ModuleInvoke object and initialize it with the given module URI.
NewModuleSpawnOverloaded. Create a new ModuleSpawn object and initialize it with the given module URI.
Rollback Rollback (undo) any pending changes since the last commit or rollback. If no operations are pending, nothing is done. Calling rollback() is only meaningful if AutoCommit is false. New Session objects are created with auto-commit set to true.
SubmitRequest Submit a Request to the contentbase and return the (possibly empty) ResultSequence.

See Also

Session Interface | Marklogic.Xcc Namespace