大网数据广告活动
磁盘与文件系统

Instance members

· 52CE 我爱测

Learn more about: Instance members

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

Instance class

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.

资料来源与适用范围

资料来源
Microsoft Learn / Windows Win32 documentation
适用范围
Windows Win32 API · Source date 07/30/2014
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY 4.0 (documentation), MIT (code samples)

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。