This documentation is archived and is not being maintained.

IReferenceService.GetReference Method

Gets a reference to the component whose name matches the specified name.

[Visual Basic]
Function GetReference( _
   ByVal name As String _
) As Object
object GetReference(
   string name
Object* GetReference(
   String* name
function GetReference(
   name : String
) : Object;


The name of the component to return a reference to.

Return Value

An object the specified name refers to, or a null reference (Nothing in Visual Basic) if no reference is found.


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