ModelExplorerTreeContainer.AddExplorerNodeCustomSetting 方法

一个图像与模型资源管理器中的元素类型关联。

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

语法

声明
Protected Sub AddExplorerNodeCustomSetting ( _
    domainClassId As Guid, _
    treeNodeImage As Image, _
    showDomainClassName As Boolean _
)
protected void AddExplorerNodeCustomSetting(
    Guid domainClassId,
    Image treeNodeImage,
    bool showDomainClassName
)

参数

  • domainClassId
    类型:System.Guid
    分配给元素所属模型的 GUID。
  • showDomainClassName
    类型:System.Boolean
    如果要在字符资源管理器中显示该元素的名称,则为 true;如果仅要显示图像,则为 false。

备注

如果自定义图像没有为元素中提供,使用默认图像。

.NET Framework 安全性

请参阅

参考

ModelExplorerTreeContainer 类

Microsoft.VisualStudio.Modeling.Shell 命名空间