Export (0) Print
Expand All

CriticalHandle Members

Represents a wrapper class for handle resources.

The following tables list the members exposed by the CriticalHandle type.

  Name Description
Protected method CriticalHandle Initializes a new instance of the CriticalHandle class with the specified invalid handle value.
Top

  Name Description
Protected field handle Specifies the handle to be wrapped.
Top

  Name Description
Public property IsClosed Gets a value indicating whether the handle is closed.
Public property IsInvalid When overridden in a derived class, gets a value indicating whether the handle value is invalid.
Top

(see also Protected Methods )
  Name Description
Public method Close Marks the handle for releasing and freeing resources.
Public method Dispose Overloaded. Marks the handle for releasing and freeing resources.
Public method Equals  Overloaded. Determines whether two Object instances are equal. (Inherited from Object.)
Public method GetHashCode  Serves as a hash function for a particular type. GetHashCode is suitable for use in hashing algorithms and data structures like a hash table. (Inherited from Object.)
Public method GetType  Gets the Type of the current instance. (Inherited from Object.)
Public method Static ReferenceEquals  Determines whether the specified Object instances are the same instance. (Inherited from Object.)
Public method SetHandleAsInvalid Marks a handle as invalid.
Public method ToString  Returns a String that represents the current Object. (Inherited from Object.)
Top

  Name Description
Protected method Dispose Overloaded. Marks the handle for releasing and freeing resources.
Protected method Finalize Overridden. Frees all resources associated with the handle.
Protected method MemberwiseClone  Creates a shallow copy of the current Object. (Inherited from Object.)
Protected method ReleaseHandle When overridden in a derived class, executes the code required to free the handle.
Protected method SetHandle Sets the handle to the specified pre-existing handle.
Top

Community Additions

ADD
Show:
© 2014 Microsoft