How to: Create Component Containers
A component container is a specialized class that acts as a means of organizing and containing components. Through a container you can track your components, communicate with them via the Containers, Sites, and Components.that hosts the component, and provide a means of common disposal after they are no longer needed. For details, see
To create a component container
Declare a variable of the type, or any class that implements the interface.
Create an instance of the container class in your variable.
Call theand methods to add and remove components to and from your container.