共用方式為


ModelExplorerTreeContainer.FindNodeForElement 方法

在 [模型總管] 中尋找指定的項目所在的節點。

命名空間:  Microsoft.VisualStudio.Modeling.Shell
組件:  Microsoft.VisualStudio.Modeling.Sdk.Shell.11.0 (在 Microsoft.VisualStudio.Modeling.Sdk.Shell.11.0.dll 中)

語法

'宣告
Public Overridable Function FindNodeForElement ( _
    element As ModelElement _
) As ExplorerTreeNode
public virtual ExplorerTreeNode FindNodeForElement(
    ModelElement element
)

參數

傳回值

型別:Microsoft.VisualStudio.Modeling.Shell.ExplorerTreeNode
節點指定給項目。 如果節點未指派的項目,則為 null。

.NET Framework 安全性

請參閱

參考

ModelExplorerTreeContainer 類別

Microsoft.VisualStudio.Modeling.Shell 命名空間