Include protected members
Include inherited members
A class that encapsulates a JET_INSTANCE in a disposable object. The instance must be closed last and closing the instance releases all other resources for the instance.
The Instance 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="dn350924(v=exchg.10).md">Instance(String)</a></td> <td>Initializes a new instance of the Instance class. The underlying JET_INSTANCE is allocated, but not initialized.</td> </tr> <tr class="even"> <td><img src="../images/dn292146.pubmethod(exchg.10).gif" title="Public method" alt="Public method" /></td> <td><a href="dn350927(v=exchg.10).md">Instance(String, String)</a></td> <td>Initializes a new instance of the Instance class. The underlying JET_INSTANCE is allocated, but not initialized.</td> </tr> <tr class="odd"> <td><img src="../images/dn292146.pubmethod(exchg.10).gif" title="Public method" alt="Public method" /></td> <td><a href="dn350948(v=exchg.10).md">Instance(String, String, TermGrbit)</a></td> <td>Initializes a new instance of the Instance class. The underlying JET_INSTANCE is allocated, but not initialized.</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.pubproperty(exchg.10).gif" title="Public property" alt="Public property" /></td> <td><a href="/dotnet/api/system.runtime.interopservices.safehandle.isclosed#System_Runtime_InteropServices_SafeHandle_IsClosed">IsClosed</a></td> <td>(Inherited from <a href="/dotnet/api/system.runtime.interopservices.safehandle">SafeHandle</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="/dotnet/api/microsoft.win32.safehandles.safehandlezeroorminusoneisinvalid.isinvalid#Microsoft_Win32_SafeHandles_SafeHandleZeroOrMinusOneIsInvalid_IsInvalid">IsInvalid</a></td> <td>(Inherited from <a href="/dotnet/api/microsoft.win32.safehandles.safehandlezeroorminusoneisinvalid">SafeHandleZeroOrMinusOneIsInvalid</a>.)</td> </tr> <tr class="odd"> <td><img src="../images/dn292128.pubproperty(exchg.10).gif" title="Public property" alt="Public property" /></td> <td><a href="dn350941(v=exchg.10).md">JetInstance</a></td> <td>Gets the JET_INSTANCE that this instance contains.</td> </tr> <tr class="even"> <td><img src="../images/dn292128.pubproperty(exchg.10).gif" title="Public property" alt="Public property" /></td> <td><a href="dn350962(v=exchg.10).md">Parameters</a></td> <td>Gets the InstanceParameters for this instance.</td> </tr> <tr class="odd"> <td><img src="../images/dn292128.pubproperty(exchg.10).gif" title="Public property" alt="Public property" /></td> <td><a href="dn350964(v=exchg.10).md">TermGrbit</a></td> <td>Gets or sets the TermGrbit for this instance.</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/dn292146.pubmethod(exchg.10).gif" title="Public method" alt="Public method" /></td> <td><a href="/dotnet/api/system.runtime.interopservices.safehandle.close#System_Runtime_InteropServices_SafeHandle_Close">Close</a></td> <td>(Inherited from <a href="/dotnet/api/system.runtime.interopservices.safehandle">SafeHandle</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.runtime.interopservices.safehandle.dangerousaddref#System_Runtime_InteropServices_SafeHandle_DangerousAddRef_System_Boolean__">DangerousAddRef</a></td> <td>(Inherited from <a href="/dotnet/api/system.runtime.interopservices.safehandle">SafeHandle</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.runtime.interopservices.safehandle.dangerousgethandle#System_Runtime_InteropServices_SafeHandle_DangerousGetHandle">DangerousGetHandle</a></td> <td>(Inherited from <a href="/dotnet/api/system.runtime.interopservices.safehandle">SafeHandle</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.runtime.interopservices.safehandle.dangerousrelease#System_Runtime_InteropServices_SafeHandle_DangerousRelease">DangerousRelease</a></td> <td>(Inherited from <a href="/dotnet/api/system.runtime.interopservices.safehandle">SafeHandle</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.runtime.interopservices.safehandle.dispose#System_Runtime_InteropServices_SafeHandle_Dispose">Dispose()</a></td> <td>(Inherited from <a href="/dotnet/api/system.runtime.interopservices.safehandle">SafeHandle</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="/dotnet/api/system.runtime.interopservices.safehandle.dispose#System_Runtime_InteropServices_SafeHandle_Dispose_System_Boolean_">Dispose(Boolean)</a></td> <td>(Inherited from <a href="/dotnet/api/system.runtime.interopservices.safehandle">SafeHandle</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.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="/dotnet/api/system.runtime.interopservices.safehandle.finalize#System_Runtime_InteropServices_SafeHandle_Finalize">Finalize</a></td> <td>(Inherited from <a href="/dotnet/api/system.runtime.interopservices.safehandle">SafeHandle</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/dn292146.pubmethod(exchg.10).gif" title="Public method" alt="Public method" /></td> <td><a href="dn350932(v=exchg.10).md">Init()</a></td> <td>Initialize the JET_INSTANCE.</td> </tr> <tr class="even"> <td><img src="../images/dn292146.pubmethod(exchg.10).gif" title="Public method" alt="Public method" /></td> <td><a href="dn350954(v=exchg.10).md">Init(InitGrbit)</a></td> <td>Initialize the JET_INSTANCE.</td> </tr> <tr class="odd"> <td><img src="../images/dn292146.pubmethod(exchg.10).gif" title="Public method" alt="Public method" /></td> <td><a href="dn350934(v=exchg.10).md">Init(JET_RSTINFO, InitGrbit)</a></td> <td>Initialize the JET_INSTANCE. This API requires at least the Vista version of ESENT.</td> </tr> <tr class="even"> <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="odd"> <td><img src="../images/dn292116.protmethod(exchg.10).gif" title="Protected method" alt="Protected method" /></td> <td><a href="dn350956(v=exchg.10).md">ReleaseHandle</a></td> <td>Release the handle for this instance. (Overrides <a href="/dotnet/api/system.runtime.interopservices.safehandle.releasehandle#System_Runtime_InteropServices_SafeHandle_ReleaseHandle">SafeHandle.ReleaseHandle()</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="/dotnet/api/system.runtime.interopservices.safehandle.sethandle#System_Runtime_InteropServices_SafeHandle_SetHandle_System_IntPtr_">SetHandle</a></td> <td>(Inherited from <a href="/dotnet/api/system.runtime.interopservices.safehandle">SafeHandle</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.runtime.interopservices.safehandle.sethandleasinvalid#System_Runtime_InteropServices_SafeHandle_SetHandleAsInvalid">SetHandleAsInvalid</a></td> <td>(Inherited from <a href="/dotnet/api/system.runtime.interopservices.safehandle">SafeHandle</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="dn350935(v=exchg.10).md">Term</a></td> <td>Terminate the JET_INSTANCE.</td> </tr> <tr class="odd"> <td><img src="../images/dn292146.pubmethod(exchg.10).gif" title="Public method" alt="Public method" /></td> <td><a href="dn350960(v=exchg.10).md">ToString</a></td> <td>Returns a <a href="/dotnet/api/system.string">String</a> that represents the current <a href="dn350923(v=exchg.10).md">Instance</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/instance-implicit-conversion-instance-to-jet-instance">Implicit(Instance to JET_INSTANCE)</a></td> <td>Provide implicit conversion of an Instance object to a JET_INSTANCE structure. This is done so that an Instance can be used anywhere a JET_INSTANCE is required.</td> </tr> </tbody> </table>
Top
Fields
<table> <thead> <tr class="header"> <th> </th> <th>Name</th> <th>Description</th> </tr> </thead> <tbody> <tr class="odd"> <td><img src="../images/dn350944.protfield(exchg.10).gif" title="Protected field" alt="Protected field" /></td> <td><a href="/dotnet/api/system.runtime.interopservices.safehandle.handle">handle</a></td> <td>(Inherited from <a href="/dotnet/api/system.runtime.interopservices.safehandle">SafeHandle</a>.)</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.
