Share via


StandardModelingAdapter.GetElementDisplayName Method (ModelElement)

 

Extension point for letting the DSL author decide the Display name for a particular model element

Namespace:   Microsoft.VisualStudio.Modeling.Integration
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.Integration.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.Integration.12.0.dll)

Syntax

protected virtual string GetElementDisplayName(
    ModelElement mel
)
protected:
virtual String^ GetElementDisplayName(
    ModelElement^ mel
)
abstract GetElementDisplayName : 
        mel:ModelElement -> string
override GetElementDisplayName : 
        mel:ModelElement -> string
Protected Overridable Function GetElementDisplayName (
    mel As ModelElement
) As String

Parameters

Return Value

Type: System.String

A string constaining the Display name for the </w:t></w:r><w:r><w:rPr><w:rStyle w:val="ParameterReference"/></w:rPr><w:t>mel</w:t></w:r><w:r><w:t>

Remarks

This method is called by GetElementReference to determine the display name for the element. If this method returns null or empty, <c>GetElementReference </c>will use the display name of the domain class instead

See Also

StandardModelingAdapter Class
Microsoft.VisualStudio.Modeling.Integration Namespace

Return to top