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 (in Microsoft.VisualStudio.Modeling.Sdk.dll)
Syntax
'Declaration
Public Overrides Function GetComponentName As String
'Usage
Dim instance As ElementTypeDescriptor
Dim returnValue As String
returnValue = instance.GetComponentName()
public override string GetComponentName()
public:
virtual String^ GetComponentName() override
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.
See Also
Reference
Microsoft.VisualStudio.Modeling.Design Namespace
Change History
Date |
History |
Reason |
---|---|---|
July 2008 |
Added topic. |
Content bug fix. |