IContainer Interface
Microsoft Silverlight will reach end of support after October 2021. Learn more.
Provides functionality for containers. Containers are objects that logically contain zero or more components.
Namespace: System.ComponentModel
Assembly: System (in System.dll)
Syntax
'Declaration
<ComVisibleAttribute(True)> _
Public Interface IContainer _
Inherits IDisposable
[ComVisibleAttribute(true)]
public interface IContainer : IDisposable
The IContainer type exposes the following members.
Methods
Name | Description | |
---|---|---|
Add(IComponent) | Adds a component to the container. | |
Add(IComponent, String) | Adds a component to the container. | |
Dispose | Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. (Inherited from IDisposable.) | |
Remove | Removes a component from the container. |
Top
Remarks
This interface exists in Silverlight as a type system requirement for ITypeDescriptorContext and compatibility requirements for TypeConverter. It is not intended for implementation.
Version Information
Silverlight
Supported in: 5, 4, 3
Silverlight for Windows Phone
Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0
XNA Framework
Supported in: Xbox 360, Windows Phone OS 7.0
Platforms
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.