次の方法で共有


ElementTypeDescriptor.GetComponentName Method

Gets the name of the model element that is represented by this class.

Namespace:  Microsoft.VisualStudio.Modeling.Design
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.10.0.dll)

Syntax

'宣言
Public Overrides Function GetComponentName As String
public override string GetComponentName()
public:
virtual String^ GetComponentName() override
abstract GetComponentName : unit -> string 
override GetComponentName : unit -> string 
public override function GetComponentName() : String

Return Value

Type: System.String
The name of the model element that is represented by this class. If the element does not have a name, this property returns the empty string ("").

Implements

ICustomTypeDescriptor.GetComponentName()

Remarks

The metadata for the described model element is represented by an object of type DomainClassInfo. The NameDomainProperty property of the metadata indicates which domain property provides the component name for the model element.

.NET Framework Security

See Also

Reference

ElementTypeDescriptor Class

Microsoft.VisualStudio.Modeling.Design Namespace

DomainClassInfo

DomainPropertyInfo

ElementNameAttribute

ElementNameProvider