Registers a new type of handle with the handle collector.
A HandleCollector.RegisteredHandleType representing the handles type, that must be used with the Add and Remove methods, or null if one could not be created
Within Forms, the following types are already registered: Accelerator Cursor EnhancedMetaFile Find GDI HDC Icon Kernel Menu Window To retreive the current HandleCollector.RegisteredHandleType representing the handles type, use the GetRegisteredHandleType method or examine the RegisteredHandleTypes collection If you attempt to add a typeName that has already been registered, the specified expense and initialThreshold values are ignored, and the ones that are already registered are used
Exception Type | Condition |
---|---|
ArgumentOutOfRangeException | Occurrs when an expense is not between 0 and 100, or the initialThreshold is set below 0 |
WindowsFormsNotInitializedException | Occurrs any time the HandleCollector is used before Forms has initialized it's internal HandleCollector |
HandleCollector Class | HandleCollector Members | Genghis.Windows.Forms Namespace