This documentation is archived and is not being maintained.

IReferenceService.GetComponent Method

Gets the component that contains the specified component.

[Visual Basic]
Function GetComponent( _
   ByVal reference As Object _
) As IComponent
[C#]
IComponent GetComponent(
   object reference
);
[C++]
IComponent* GetComponent(
   Object* reference
);
[JScript]
function GetComponent(
   reference : Object
) : IComponent;

Parameters

reference
The object to retrieve the parent component for.

Return Value

The base IComponent that contains the specified object, or a null reference (Nothing in Visual Basic) if no parent component exists.

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

IReferenceService Interface | IReferenceService Members | System.ComponentModel.Design Namespace

Show: