次の方法で共有


IDomainModelSerializer.LoadModelAndDiagram Method

Definition

Loads the model and diagram files into the specified partition and returns the root model element.

public:
 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
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

Detailed information about the result of the load

modelPartition
Partition

The partition into which the model should be loaded

modelFileName
String

The name of the model file to load

diagramPartition
Partition

The partition into which the diagram should be loaded

diagramFileName
String

The name of the diagram file to load

serializerLocator
ISerializerLocator

The serializer locator to use when attempting to resolve any additional domain model namespaces encountered in the model file. Can be null.

Returns

The root model element

Applies to