Returns the component's container.
[Visual Basic] Overridable Public Function GetContainer() As IContainer [C#] public virtual IContainer GetContainer(); [C++] public: virtual IContainer* GetContainer(); [JScript] public function GetContainer() : IContainer;
Returns an object implementing the IContainer interface that represents the component's container. If the component does not have a site, null is returned.
MarshalByRefComponent Class | MarshalByRefComponent Members | System.ComponentModel Namespace