ModelingDocData.RootElement 属性

获取在文档的根元素。

命名空间:  Microsoft.VisualStudio.Modeling.Shell
程序集:  Microsoft.VisualStudio.Modeling.Sdk.Shell.11.0(在 Microsoft.VisualStudio.Modeling.Sdk.Shell.11.0.dll 中)

语法

声明
Public ReadOnly Property RootElement As ModelElement
public ModelElement RootElement { get; }

属性值

类型:Microsoft.VisualStudio.Modeling.ModelElement
根元素; 或者,如果文档表示建模设计器中, nullnull 引用(在 Visual Basic 中为 Nothing)。

备注

根元素标识分配给文档建模设计器存储的一部分。默认情况下,根元素是在 .dsl 文件的第一个元素。域模型元素通常是根元素。

.NET Framework 安全性

请参见

参考

ModelingDocData 类

Microsoft.VisualStudio.Modeling.Shell 命名空间