Sets the root element.
Namespace: Microsoft.VisualStudio.Modeling.Shell
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Shell (in Microsoft.VisualStudio.Modeling.Sdk.Shell.dll)
Syntax
'宣言
Protected Overridable Sub SetRootElement ( _
rootElement As ModelElement _
)
'使用
Dim rootElement As ModelElement
Me.SetRootElement(rootElement)
protected virtual void SetRootElement(
ModelElement rootElement
)
protected:
virtual void SetRootElement(
ModelElement^ rootElement
)
protected function SetRootElement(
rootElement : ModelElement
)
Parameters
rootElement
Type: Microsoft.VisualStudio.Modeling.ModelElementThe element to set as the root element.
Permissions
- 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.