Share via


StandardModelingAdapter.GetElementDisplayName Method

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.11.0 (in Microsoft.VisualStudio.Modeling.Sdk.Integration.11.0.dll)

Syntax

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

Parameters

Return Value

Type: 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 [M:Microsoft.VisualStudio.Modeling.Integration.StandardModelingAdapter`T.GetElementReference]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

.NET Framework Security

See Also

Reference

StandardModelingAdapter Class

Microsoft.VisualStudio.Modeling.Integration Namespace