Container Class
Encapsulates zero or more components.
For a list of all members of this type, see Container Members.
System.Object
System.ComponentModel.Container
[Visual Basic] Public Class Container Implements IContainer, IDisposable [C#] public class Container : IContainer, IDisposable [C++] public __gc class Container : public IContainer, IDisposable [JScript] public class Container implements IContainer, IDisposable
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Remarks
The Container class is the default implementation for the IContainer interface.
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.
The components in a container are tracked in a first-in, first-out list, which also defines the order of the components within the container. Added components are appended to the end of the list.
Requirements
Namespace: System.ComponentModel
Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, .NET Compact Framework
Assembly: System (in System.dll)
See Also
Container Members | System.ComponentModel Namespace | IContainer | IComponent | Component