IReferenceService.GetName Method (Object)


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Gets the name of the specified component.

Namespace:   System.ComponentModel.Design
Assembly:  System (in System.dll)

string GetName(
	object reference


Type: System.Object

The object to return the name of.

Return Value

Type: System.String

The name of the object referenced, or null 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.

.NET Framework
Available since 1.1
Return to top