Edit

Session members

Include protected members
Include inherited members

A class that encapsulates a JET_SESID in a disposable object.

The Session type exposes the following members.

Constructors

  Name Description
Public method Session Initializes a new instance of the Session class. A new JET_SESSION is allocated from the given instance.

Top

Properties

  Name Description
Protected property HasResource Gets a value indicating whether the underlying resource is currently allocated. (Inherited from EsentResource.)
Public property JetSesid Gets the JET_SESID that this session contains.

Top

Methods

  Name Description
Protected method CheckObjectIsNotDisposed Throw an exception if this object has been disposed. (Inherited from EsentResource.)
Public method Dispose() Dispose of this object, releasing the underlying Esent resource. (Inherited from EsentResource.)
Protected method Dispose(Boolean) Called by Dispose and the finalizer. (Inherited from EsentResource.)
Public method End Terminate the session.
Public method Equals (Inherited from Object.)
Protected method Finalize Finalizes an instance of the EsentResource class. (Inherited from EsentResource.)
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Protected method MemberwiseClone (Inherited from Object.)
Protected method ReleaseResource Free the underlying JET_SESID. (Overrides EsentResource.ReleaseResource().)
Protected method ResourceWasAllocated Called by a subclass when a resource is allocated. (Inherited from EsentResource.)
Protected method ResourceWasReleased Called by a subclass when a resource is freed. (Inherited from EsentResource.)
Public method ToString Returns a String that represents the current Session. (Overrides Object.ToString().)

Top

Operators

  Name Description
Public operatorStatic member Implicit(Session to JET_SESID) Implicit conversion operator from a Session to a JET_SESID. This allows a Session to be used with APIs which expect a JET_SESID.

Top

See also

Reference

Session class

Microsoft.Isam.Esent.Interop namespace