NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

Component.GetContainer

Returns the IContainer that contains the Component.

[Visual Basic]
Overridable Public Function GetContainer() As IContainer
[C#]
public virtual IContainer GetContainer();
[C++]
public: virtual IContainer* GetContainer();
[JScript]
public function GetContainer() : IContainer;

Return Value

The IContainer that contains the Component, if any.

a null reference (in Visual Basic Nothing) if the Component is not encapsulated in an IContainer.

Remarks

This method can be overridden by a derived class.

See Also

Component Class | Component Members | System.ComponentModel Namespace | IContainer | Container