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
)
參數
- element
型別:Microsoft.VisualStudio.Modeling.ModelElement
項目。
傳回值
型別:Microsoft.VisualStudio.Modeling.Shell.ExplorerTreeNode
節點指定給項目。 如果節點未指派的項目,則為 null。
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。