共用方式為


ModelExplorerTreeContainer.RemoveRootElement 方法

從根節點,在 [模型總管] 中移除項目。

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

語法

'宣告
Public Sub RemoveRootElement ( _
    rootElement As ModelElement _
)
public void RemoveRootElement(
    ModelElement rootElement
)

參數

.NET Framework 安全性

請參閱

參考

ModelExplorerTreeContainer 類別

Microsoft.VisualStudio.Modeling.Shell 命名空間