ModelingDocData.RootElement Property
Gets the root element in the document.
Namespace: Microsoft.VisualStudio.Modeling.Shell
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Shell.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.Shell.10.0.dll)
Syntax
'Declaração
Public ReadOnly Property RootElement As ModelElement
Get
public ModelElement RootElement { get; }
public:
property ModelElement^ RootElement {
ModelElement^ get ();
}
member RootElement : ModelElement
function get RootElement () : ModelElement
Property Value
Type: Microsoft.VisualStudio.Modeling.ModelElement
The root element or, if the document represents the modeling designer store, nulla 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.
.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.