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.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.Integration.12.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
mel
Type: Microsoft.VisualStudio.Modeling.ModelElementModel element for which we want to compute the display name
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
.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.