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
<table> <thead> <tr class="header"> <th> </th> <th>Name</th> <th>Description</th> </tr> </thead> <tbody> <tr class="odd"> <td><img src="../images/dn292146.pubmethod(exchg.10).gif" title="Public method" alt="Public method" /></td> <td><a href="dn351126(v=exchg.10).md">Session</a></td> <td>Initializes a new instance of the Session class. A new JET_SESSION is allocated from the given instance.</td> </tr> </tbody> </table>
Top
Properties
<table> <thead> <tr class="header"> <th> </th> <th>Name</th> <th>Description</th> </tr> </thead> <tbody> <tr class="odd"> <td><img src="../images/dn292128.protproperty(exchg.10).gif" title="Protected property" alt="Protected property" /></td> <td><a href="dn350578(v=exchg.10).md">HasResource</a></td> <td>Gets a value indicating whether the underlying resource is currently allocated. (Inherited from <a href="dn319890(v=exchg.10).md">EsentResource</a>.)</td> </tr> <tr class="even"> <td><img src="../images/dn292128.pubproperty(exchg.10).gif" title="Public property" alt="Public property" /></td> <td><a href="dn351175(v=exchg.10).md">JetSesid</a></td> <td>Gets the JET_SESID that this session contains.</td> </tr> </tbody> </table>
Top
Methods
<table> <thead> <tr class="header"> <th> </th> <th>Name</th> <th>Description</th> </tr> </thead> <tbody> <tr class="odd"> <td><img src="../images/dn292116.protmethod(exchg.10).gif" title="Protected method" alt="Protected method" /></td> <td><a href="dn350541(v=exchg.10).md">CheckObjectIsNotDisposed</a></td> <td>Throw an exception if this object has been disposed. (Inherited from <a href="dn319890(v=exchg.10).md">EsentResource</a>.)</td> </tr> <tr class="even"> <td><img src="../images/dn292146.pubmethod(exchg.10).gif" title="Public method" alt="Public method" /></td> <td><a href="dn350553(v=exchg.10).md">Dispose()</a></td> <td>Dispose of this object, releasing the underlying Esent resource. (Inherited from <a href="dn319890(v=exchg.10).md">EsentResource</a>.)</td> </tr> <tr class="odd"> <td><img src="../images/dn292116.protmethod(exchg.10).gif" title="Protected method" alt="Protected method" /></td> <td><a href="dn350543(v=exchg.10).md">Dispose(Boolean)</a></td> <td>Called by Dispose and the finalizer. (Inherited from <a href="dn319890(v=exchg.10).md">EsentResource</a>.)</td> </tr> <tr class="even"> <td><img src="../images/dn292146.pubmethod(exchg.10).gif" title="Public method" alt="Public method" /></td> <td><a href="dn351128(v=exchg.10).md">End</a></td> <td>Terminate the session.</td> </tr> <tr class="odd"> <td><img src="../images/dn292146.pubmethod(exchg.10).gif" title="Public method" alt="Public method" /></td> <td><a href="/dotnet/api/system.object.equals#System_Object_Equals_System_Object_">Equals</a></td> <td>(Inherited from <a href="/dotnet/api/system.object">Object</a>.)</td> </tr> <tr class="even"> <td><img src="../images/dn292116.protmethod(exchg.10).gif" title="Protected method" alt="Protected method" /></td> <td><a href="dn350552(v=exchg.10).md">Finalize</a></td> <td>Finalizes an instance of the EsentResource class. (Inherited from <a href="dn319890(v=exchg.10).md">EsentResource</a>.)</td> </tr> <tr class="odd"> <td><img src="../images/dn292146.pubmethod(exchg.10).gif" title="Public method" alt="Public method" /></td> <td><a href="/dotnet/api/system.object.gethashcode#System_Object_GetHashCode">GetHashCode</a></td> <td>(Inherited from <a href="/dotnet/api/system.object">Object</a>.)</td> </tr> <tr class="even"> <td><img src="../images/dn292146.pubmethod(exchg.10).gif" title="Public method" alt="Public method" /></td> <td><a href="/dotnet/api/system.object.gettype#System_Object_GetType">GetType</a></td> <td>(Inherited from <a href="/dotnet/api/system.object">Object</a>.)</td> </tr> <tr class="odd"> <td><img src="../images/dn292116.protmethod(exchg.10).gif" title="Protected method" alt="Protected method" /></td> <td><a href="/dotnet/api/system.object.memberwiseclone#System_Object_MemberwiseClone">MemberwiseClone</a></td> <td>(Inherited from <a href="/dotnet/api/system.object">Object</a>.)</td> </tr> <tr class="even"> <td><img src="../images/dn292116.protmethod(exchg.10).gif" title="Protected method" alt="Protected method" /></td> <td><a href="dn351165(v=exchg.10).md">ReleaseResource</a></td> <td>Free the underlying JET_SESID. (Overrides <a href="dn350545(v=exchg.10).md">EsentResource.ReleaseResource()</a>.)</td> </tr> <tr class="odd"> <td><img src="../images/dn292116.protmethod(exchg.10).gif" title="Protected method" alt="Protected method" /></td> <td><a href="dn350576(v=exchg.10).md">ResourceWasAllocated</a></td> <td>Called by a subclass when a resource is allocated. (Inherited from <a href="dn319890(v=exchg.10).md">EsentResource</a>.)</td> </tr> <tr class="even"> <td><img src="../images/dn292116.protmethod(exchg.10).gif" title="Protected method" alt="Protected method" /></td> <td><a href="dn350577(v=exchg.10).md">ResourceWasReleased</a></td> <td>Called by a subclass when a resource is freed. (Inherited from <a href="dn319890(v=exchg.10).md">EsentResource</a>.)</td> </tr> <tr class="odd"> <td><img src="../images/dn292146.pubmethod(exchg.10).gif" title="Public method" alt="Public method" /></td> <td><a href="dn351129(v=exchg.10).md">ToString</a></td> <td>Returns a <a href="/dotnet/api/system.string">String</a> that represents the current <a href="dn351164(v=exchg.10).md">Session</a>. (Overrides <a href="/dotnet/api/system.object.tostring#System_Object_ToString">Object.ToString()</a>.)</td> </tr> </tbody> </table>
Top
Operators
<table> <thead> <tr class="header"> <th> </th> <th>Name</th> <th>Description</th> </tr> </thead> <tbody> <tr class="odd"> <td><img src="../images/dn350944.puboperator(exchg.10).gif" title="Public operator" alt="Public operator" /><img src="../images/dn292146.static(exchg.10).gif" title="Static member" alt="Static member" /></td> <td><a href="/windows/win32/extensible-storage-engine/session-implicit-conversion-session-to-jet-sesid">Implicit(Session to JET_SESID)</a></td> <td>Implicit conversion operator from a Session to a JET_SESID. This allows a Session to be used with APIs which expect a JET_SESID.</td> </tr> </tbody> </table>
Top
See also
Reference
Microsoft.Isam.Esent.Interop namespace
Source: Microsoft Learn / Windows Win32 documentation by Microsoft and contributors. Documentation licensed CC BY 4.0. Code samples are covered by the MIT License. Converted from Markdown, with links normalized and embedded media omitted.
