MarkLogic XCC/.Net Library

Session Properties

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

Public Instance Properties

AutoCommit The current value of auto-commit. In the current implementation, this will always be true.
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.

See Also

Session Interface | Marklogic.Xcc Namespace