StandardModelingAdapter.GetElementDisplayName 方法

扩展允许 DSL 作者点决定显示名称在某个特定模型元素

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

语法

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

参数

返回值

类型:System.String
constaining 显示名称。 AMP_LT/w 的字符串: tAMP_GTAMP_LT/w:w:rw:rPrw:rStyle w:val="ParameterReference"/rAMP_GTAMP_LT/w:w:trPrAMP_GTmelAMP_LT/w: tAMP_GTAMP_LT/w: rAMP_GTw:rw:t

备注

此方法由 [M:Microsoft.VisualStudio.Modeling.Integration.StandardModelingAdapter`T.GetElementReference]GetElementReference 调用来确定显示名称元素。如果此方法返回 null 或为空, cGetElementReference AMP_LT/cAMP_GTwill 使用域类的显示名称

.NET Framework 安全性

请参见

参考

StandardModelingAdapter 类

Microsoft.VisualStudio.Modeling.Integration 命名空间