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

  Name Description
Public method Instance(String) Initializes a new instance of the Instance class. The underlying JET_INSTANCE is allocated, but not initialized.
Public method Instance(String, String) Initializes a new instance of the Instance class. The underlying JET_INSTANCE is allocated, but not initialized.
Public method Instance(String, String, TermGrbit) Initializes a new instance of the Instance class. The underlying JET_INSTANCE is allocated, but not initialized.

Top

Properties

  Name Description
Public property IsClosed (Inherited from SafeHandle.)
Public property IsInvalid (Inherited from SafeHandleZeroOrMinusOneIsInvalid.)
Public property JetInstance Gets the JET_INSTANCE that this instance contains.
Public property Parameters Gets the InstanceParameters for this instance.
Public property TermGrbit Gets or sets the TermGrbit for this instance.

Top

Methods

  Name Description
Public method Close (Inherited from SafeHandle.)
Public method DangerousAddRef (Inherited from SafeHandle.)
Public method DangerousGetHandle (Inherited from SafeHandle.)
Public method DangerousRelease (Inherited from SafeHandle.)
Public method Dispose() (Inherited from SafeHandle.)
Protected method Dispose(Boolean) (Inherited from SafeHandle.)
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from SafeHandle.)
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Public method Init() Initialize the JET_INSTANCE.
Public method Init(InitGrbit) Initialize the JET_INSTANCE.
Public method Init(JET_RSTINFO, InitGrbit) Initialize the JET_INSTANCE. This API requires at least the Vista version of ESENT.
Protected method MemberwiseClone (Inherited from Object.)
Protected method ReleaseHandle Release the handle for this instance. (Overrides SafeHandle.ReleaseHandle().)
Protected method SetHandle (Inherited from SafeHandle.)
Public method SetHandleAsInvalid (Inherited from SafeHandle.)
Public method Term Terminate the JET_INSTANCE.
Public method ToString Returns a String that represents the current Instance. (Overrides Object.ToString().)

Top

Operators

  Name Description
Public operatorStatic member Implicit(Instance to JET_INSTANCE) 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.

Top

Fields

  Name Description
Protected field handle (Inherited from SafeHandle.)

Top

See also

Reference

Instance class

Microsoft.Isam.Esent.Interop namespace