This documentation is archived and is not being maintained.

IReferenceService.GetName Method

Gets the name of the specified component.

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


The object to return the name of.

Return Value

The name of the object referenced, or a null reference (Nothing in Visual Basic) if the object reference is not valid.


The name of each component sited in a design time project is set in the Name property of the ISite where the component is sited.


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