ModelExplorerTreeContainer.AddRootElement Method
Adds an element to the root of the tree view in Model Explorer.
Namespace: Microsoft.VisualStudio.Modeling.Shell
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Shell.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.Shell.10.0.dll)
Syntax
声明
Protected Sub AddRootElement ( _
rootElement As ModelElement _
)
protected void AddRootElement(
ModelElement rootElement
)
protected:
void AddRootElement(
ModelElement^ rootElement
)
member AddRootElement :
rootElement:ModelElement -> unit
protected function AddRootElement(
rootElement : ModelElement
)
Parameters
- rootElement
Type: Microsoft.VisualStudio.Modeling.ModelElement
The element to add to the root of the tree view in Model Explorer.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.