允许 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
)
参数
- mel
类型:Microsoft.VisualStudio.Modeling.ModelElement
我们想用模型元素计算显示名称
返回值
类型: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 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关详细信息,请参阅通过部分受信任的代码使用库。