Registers with the application an object that will require disposing. This member is static and can be invoked without creating an instance of the class.
The object to register.
If your class derives from the Component class, you do not have to call the registerDisposableObject method. The Component class automatically disposes the object when the application unloads.