An NDoc Documented Class Library

HandleCollector Members

Public Static Properties

RegisteredHandleCount Returns the total number of handles that have been registered regardless of their type
RegisteredHandleTypes Returns a Hashtable copy of all the currently registered handle types
RegisteredHandleTypesCount Returns the total number of unique handle types that have been registered
UseStrongNamedAssembly Only set this to true if using a strongly named assembly. Setting this to false may work around problems with loading the strongly named assembly, but might thrown unexpected exceptions.

Public Static Methods

Add Adds the given handle to the handle collector. The handle is added to the Forms sealed HandleCollector class so as to consolidate handle tracking between an external class and the internals within that namespace. The garbage collector will automatically determine when/if the handles need to be collected.
GetRegisteredHandleType Finds if a handle has been registered, and if so, returns its HandleCollector.RegisteredHandleType
GetTypeSpecificRegisteredHandleCountOverloaded. Finds the number of handles of a given type that have been registered
RegisterType Registers a new type of handle with the handle collector.
Remove Removes the given handle from the handle collector. This handle will be removed from the Forms sealed HandleCollector class. Therefore it will not be included in the garbage collection kick-off algorithm.

Public Static Events

HandleAdded Occurs whenever a new handle has been added to the handle collector
HandleRemoved Occurs whenever an existing handle has been removed from the handle collector

Public Instance Constructors

HandleCollector ConstructorInitializes a new instance of the HandleCollector class.

Public Instance Methods

Equals (inherited from Object)Determines whether the specified Object is equal to the current Object.
GetHashCode (inherited from Object)Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.
GetType (inherited from Object)Gets the Type of the current instance.
ToString (inherited from Object)Returns a String that represents the current Object.

Protected Instance Methods

Finalize (inherited from Object)Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
MemberwiseClone (inherited from Object)Creates a shallow copy of the current Object.

See Also

HandleCollector Class | Genghis.Windows.Forms Namespace