Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

Component.Container Property

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:
© 2015 Microsoft