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.
The handle that was passed into the Add method
Exception Type | Condition |
---|---|
HandleTypeNotRegisteredException | Occurs when the specified type has not been registered |
HandleCollector Class | HandleCollector Members | Genghis.Windows.Forms Namespace