DslDefinitionModelDomainModelSerializerBase.LoadModelAndDiagram 方法

定义

加载 DslLibrary 实例及其关联的关系图文件。

public:
 virtual Microsoft::VisualStudio::Modeling::ModelElement ^ LoadModelAndDiagram(Microsoft::VisualStudio::Modeling::SerializationResult ^ serializationResult, Microsoft::VisualStudio::Modeling::Partition ^ modelPartition, System::String ^ modelFileName, Microsoft::VisualStudio::Modeling::Partition ^ diagramPartition, System::String ^ diagramFileName, Microsoft::VisualStudio::Modeling::ISerializerLocator ^ serializerLocator);
public Microsoft.VisualStudio.Modeling.ModelElement LoadModelAndDiagram (Microsoft.VisualStudio.Modeling.SerializationResult serializationResult, Microsoft.VisualStudio.Modeling.Partition modelPartition, string modelFileName, Microsoft.VisualStudio.Modeling.Partition diagramPartition, string diagramFileName, Microsoft.VisualStudio.Modeling.ISerializerLocator serializerLocator);
abstract member LoadModelAndDiagram : Microsoft.VisualStudio.Modeling.SerializationResult * Microsoft.VisualStudio.Modeling.Partition * string * Microsoft.VisualStudio.Modeling.Partition * string * Microsoft.VisualStudio.Modeling.ISerializerLocator -> Microsoft.VisualStudio.Modeling.ModelElement
override this.LoadModelAndDiagram : Microsoft.VisualStudio.Modeling.SerializationResult * Microsoft.VisualStudio.Modeling.Partition * string * Microsoft.VisualStudio.Modeling.Partition * string * Microsoft.VisualStudio.Modeling.ISerializerLocator -> Microsoft.VisualStudio.Modeling.ModelElement
Public Function LoadModelAndDiagram (serializationResult As SerializationResult, modelPartition As Partition, modelFileName As String, diagramPartition As Partition, diagramFileName As String, serializerLocator As ISerializerLocator) As ModelElement

参数

serializationResult
SerializationResult

存储来自加载操作的序列化结果。

modelPartition
Partition

将在其中创建新的 DslLibrary 实例的分区。

modelFileName
String

要从中反序列化 DslLibrary 实例的文件的名称。

diagramPartition
Partition

将在其中创建新的 global:: DslDesigner 实例的分区。

diagramFileName
String

将从中反序列化 global:: VisualStudio 实例的文件的名称。

serializerLocator
ISerializerLocator

用于定位加载模型所需的任何其他域模型类型。 可以为 null。

返回

ModelElement

加载的 DslLibrary 实例。

实现

适用于