Condividi tramite


DslDefinitionModelDomainModelSerializerBase.LoadModelAndDiagram Method

Definition

Loads a DslLibrary instance and its associated diagram file.

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

Parameters

serializationResult
SerializationResult

Stores serialization result from the load operation.

modelPartition
Partition

Partition in which the new DslLibrary instance will be created.

modelFileName
String

Name of the file from which the DslLibrary instance will be deserialized.

diagramPartition
Partition

Partition in which the new global::Microsoft.VisualStudio.Modeling.DslDesigner.DslDesignerDiagram instance will be created.

diagramFileName
String

Name of the file from which the global::Microsoft.VisualStudio.Modeling.DslDesigner.DslDesignerDiagram instance will be deserialized.

serializerLocator
ISerializerLocator

Used to locate any additional domain model types required to load the model. Can be null.

Returns

The loaded DslLibrary instance.

Implements

Applies to