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.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.12.0.dll)
Syntax
'Declaration
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.