一个图像与模型资源管理器中的元素类型关联。
命名空间: 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。
- treeNodeImage
类型:System.Drawing.Image
与元素一起使用的图像。
- showDomainClassName
类型:System.Boolean
如果要在字符资源管理器中显示该元素的名称,则为 true;如果仅要显示图像,则为 false。
备注
如果自定义图像没有为元素中提供,使用默认图像。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关详细信息,请参阅通过部分受信任的代码使用库。