System.ComponentModel.Design.IReferenceService.GetName Method

Gets the name of the specified component.

Syntax

public string GetName (object reference)

Parameters

reference
The object to return the name of.

Returns

The name of the object referenced, or null if the object reference is not valid.

Remarks

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

Requirements

Namespace: System.ComponentModel.Design
Assembly: System (in System.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0