An NDoc Documented Class Library

HandleCollector.Remove Method 

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 IntPtr Remove(
   IntPtr handle,
   RegisteredHandleType type
);

Parameters

handle
A IntPtr referencing a handle of the specified type
type
A HandleCollector.RegisteredHandleType representing the type of the handle

Return Value

The handle that was passed into the Remove method

Exceptions

Exception TypeCondition
HandleTypeNotRegisteredExceptionOccurs when the specified type has not been registered

See Also

HandleCollector Class | HandleCollector Members | Genghis.Windows.Forms Namespace