IDomainModelSerializer.LoadModelAndDiagram Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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