StandardModelingAdapter.GetElementDisplayName 方法

允许 DSL 作者决定一特定模型元素的显示名称的扩展点。

命名空间:  Microsoft.VisualStudio.Modeling.Integration
程序集:  Microsoft.VisualStudio.Modeling.Sdk.Integration.12.0(在 Microsoft.VisualStudio.Modeling.Sdk.Integration.12.0.dll 中)

语法

声明
Protected Overridable Function GetElementDisplayName ( _
    mel As ModelElement _
) As String
protected virtual string GetElementDisplayName(
    ModelElement mel
)

参数

返回值

类型:System.String
包含 </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> 显示名称的字符串

备注

此方法由 GetElementReference 调用来确定显示名称元素。 如果此方法返回 null 或为空,<c>GetElementReference </c>will 使用字段选件类的显示名称

.NET Framework 安全性

请参阅

参考

StandardModelingAdapter 类

Microsoft.VisualStudio.Modeling.Integration 命名空间