MarkLogic XCC/.Net Library |

# Session Members

Session overview

#### Public Instance Properties

AutoCommit | Obsolete. To be removed.
Closed | Indicates whether this Session object is closed.
ContentbaseMetaData | Meta-information about the contentbase associated with this Session.
ContentBaseName | The contentbase name associated with this Session.
ContentSource | A reference to the ContentSource object from which this Session instance was obtained.
CurrentServerPointInTime | Issues a query to the server and returns the most recent system commit timestamp. The value returned is as-of the time the query executes on the server. The returned value represents a point-in-time, or snapshot, of the contentbase. This value may be passed to RequestOptions.EffectivePointInTime to run queries as-of that contentbase state.
DefaultRequestOptions | The default RequestOptions instance for this Session object. An instance of RequestOptions with default settings is created when the Session is created and whenever you set this property to null, so this property is always non-null. If a RequestOptions object is set on both the Session and the Request, then both are applied with the values of the Request object taking precedence.
EffectiveRequestOptions | An dynamically created instance of RequestOptions that represents the effective default request options for this Session (ie, the options that would be applied if no options are applied to a specific Request. The values in the returned instance reflect the builtin defaults merged with the values in the options set by for the DefaultRequestOptions property, (if any). The object returned is a copy, making changes to it will not affect option settings for the Session.
UserCredentials | The user identity associated with this Session.
UserObject | An opaque user object for this Session. This object is not used or examined in any way by XCC. Client code may use this hook in any way it sees fit to associate state with the Session.

#### 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 | Not currently implemented.
InsertContent | Overloaded. Insert the given Content into the contentbase. This is equivalent to calling InsertContent(Content[]) with an array length of one. Upon return, the content will have been inserted and committed. Content objects that are rewindable will be automatically retried if a recoverable error occurs during transmission to the server. To specify the maximum number of retry attemtps, set an instance of RequestOptions with the desired value (RequestOptions.MaxAutoRetry}) using the DefaultRequestOptions property prior to invoking this method.
NewAdhocQuery | Overloaded. Create a new AdhocQuery object and initialize it with the given query string and RequestOptions object.
NewModuleInvoke | Overloaded. Create a new ModuleInvoke object and initialize it with the given module URI and RequestOptions object.
NewModuleSpawn | Overloaded. Create a new ModuleSpawn object and initialize it with the given module URI and RequestOptions object.
Rollback | Not currently implemented.
SubmitRequest | Submit a Request to the contentbase and return the (possibly empty) ResultSequence.

#### See Also

Session Interface | Marklogic.Xcc Namespace