共用方式為


ModelingDocData.SetRootElement 方法

設定根項目。

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

語法

'宣告
Protected Overridable Sub SetRootElement ( _
    rootElement As ModelElement _
)
protected virtual void SetRootElement(
    ModelElement rootElement
)

參數

.NET Framework 安全性

請參閱

參考

ModelingDocData 類別

Microsoft.VisualStudio.Modeling.Shell 命名空間