IContainer Interface
Provides functionality for containers. Containers are objects that logically contain zero or more components.
Assembly: System (in System.dll)
| Name | Description | |
|---|---|---|
![]() | Components | Gets all the components in the IContainer. |
| Name | Description | |
|---|---|---|
![]() | Add(IComponent) | Adds the specified IComponent to the IContainer at the end of the list. |
![]() | Add(IComponent, String) | Adds the specified IComponent to the IContainer at the end of the list, and assigns a name to the component. |
![]() | Dispose() | Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.(Inherited from IDisposable.) |
![]() | Remove(IComponent) | Removes a component from the IContainer. |
Containers are objects that encapsulate and track zero or more components. In this context, containment refers to logical containment, not visual containment. You can use components and containers in a variety of scenarios, including scenarios that are both visual and not visual.
Notes to Implementers:
To be a container, the class must implement the IContainer interface, which supports methods for adding, removing, and retrieving components.
Available since 1.1
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0

