Tracks outstanding handles and forces a garbage collection when the specified threshold is reached.
Assembly: System (in System.dll)
Thetype exposes the following members.
|HandleCollector(String, Int32)||Initializes a new instance of the class using a name and a threshold at which to begin handle collection.|
|HandleCollector(String, Int32, Int32)||Initializes a new instance of the class using a name, a threshold at which to begin handle collection, and a threshold at which handle collection must occur.|
|Add||Increments the current handle count.|
|Equals(Object)||Determines whether the specified object is equal to the current object. (Inherited from Object.)|
|GetHashCode||Serves as a hash function for a particular type. (Inherited from Object.)|
|GetType||Gets the Type of the current instance. (Inherited from Object.)|
|Remove||Decrements the current handle count.|
|ToString||Returns a string that represents the current object. (Inherited from Object.)|
Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.