This documentation is archived and is not being maintained.
Component.Container Property
.NET Framework 1.1
Gets the IContainer that contains the Component.
[Visual Basic] Public ReadOnly Property Container As IContainer [C#] public IContainer Container {get;} [C++] public: __property IContainer* get_Container(); [JScript] public function get Container() : IContainer;
Property Value
The IContainer that contains the Component, if any.
This value is a null reference (Nothing in Visual Basic) if the Component is not encapsulated in an IContainer.
Remarks
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. The last component added is the last component in the list.
Requirements
Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family
See Also
Component Class | Component Members | System.ComponentModel Namespace | IContainer | Container
Show: