共用方式為


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。

備註

預設為非抽象內嵌物件。 可以覆寫,不過,不建議包括不是內嵌的關聯性,,因為這個總管進行一般假設它只顯示內嵌及其行為是未定義,若非如此

.NET Framework 安全性

請參閱

參考

ModelExplorerTreeContainer 類別

Microsoft.VisualStudio.Modeling.Shell 命名空間