Gets the root element in the document.
Namespace: Microsoft.VisualStudio.Modeling.Shell
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Shell (in Microsoft.VisualStudio.Modeling.Sdk.Shell.dll)
Syntax
'宣言
Public ReadOnly Property RootElement As ModelElement
'使用
Dim instance As ModelingDocData
Dim value As ModelElement
value = instance.RootElement
public ModelElement RootElement { get; }
public:
property ModelElement^ RootElement {
ModelElement^ get ();
}
public function get RootElement () : ModelElement
Property Value
Type: Microsoft.VisualStudio.Modeling.ModelElement
The root element or, if the document represents the modeling designer store, a null reference (Nothing in Visual Basic).
Remarks
The root element identifies the section of the modeling designer store that is assigned to the document. By default, the root element is the first element in the .dsl file. The Domain Model element is typically 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.