ModelingDocData.SetRootElement Method
Sets the root element.
Namespace: Microsoft.VisualStudio.Modeling.Shell
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Shell.11.0 (in Microsoft.VisualStudio.Modeling.Sdk.Shell.11.0.dll)
Syntax
'Declaration
Protected Overridable Sub SetRootElement ( _
rootElement As ModelElement _
)
protected virtual void SetRootElement(
ModelElement rootElement
)
protected:
virtual void SetRootElement(
ModelElement^ rootElement
)
abstract SetRootElement :
rootElement:ModelElement -> unit
override SetRootElement :
rootElement:ModelElement -> unit
protected function SetRootElement(
rootElement : ModelElement
)
Parameters
rootElement
Type: Microsoft.VisualStudio.Modeling.ModelElementThe element to set as the root element.
.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.