ModelExplorerTreeContainer.IsExplorableRoleForElement 方法

询问指定的角色是否应视为资源管理器中的候选显示项。 如果隐藏,它不会显示在资源管理器中。

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

语法

声明
Protected Friend Overridable Function IsExplorableRoleForElement ( _
    element As ModelElement, _
    role As DomainRoleInfo _
) As Boolean
protected internal virtual bool IsExplorableRoleForElement(
    ModelElement element,
    DomainRoleInfo role
)

参数

返回值

类型:System.Boolean
如果该角色为显示候选,则为 true;否则为 false。

备注

默认情况下仅限于非抽象 embeddings 表示。 可以重写,但是,不建议向包含不是 embeddings 的关系,因为资源管理器使一般假定其只显示 embeddings 及其行为是未定义,则这种理解有误

.NET Framework 安全性

请参阅

参考

ModelExplorerTreeContainer 类

Microsoft.VisualStudio.Modeling.Shell 命名空间