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
IComponent GetComponent(
   object reference
IComponent* GetComponent(
   Object* reference
function GetComponent(
   reference : Object
) : IComponent;


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.


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