Partilhar via


IDomainModelSerializer.LoadModel Method

Definition

Loads the model file into the specified partition and returns the root model element.

public:
 Microsoft::VisualStudio::Modeling::ModelElement ^ LoadModel(Microsoft::VisualStudio::Modeling::SerializationResult ^ serializationResult, Microsoft::VisualStudio::Modeling::Partition ^ partition, System::String ^ fileName, Microsoft::VisualStudio::Modeling::ISerializerLocator ^ serializerLocator);
public Microsoft.VisualStudio.Modeling.ModelElement LoadModel (Microsoft.VisualStudio.Modeling.SerializationResult serializationResult, Microsoft.VisualStudio.Modeling.Partition partition, string fileName, Microsoft.VisualStudio.Modeling.ISerializerLocator serializerLocator);
abstract member LoadModel : Microsoft.VisualStudio.Modeling.SerializationResult * Microsoft.VisualStudio.Modeling.Partition * string * Microsoft.VisualStudio.Modeling.ISerializerLocator -> Microsoft.VisualStudio.Modeling.ModelElement
Public Function LoadModel (serializationResult As SerializationResult, partition As Partition, fileName As String, serializerLocator As ISerializerLocator) As ModelElement

Parameters

serializationResult
SerializationResult

Detailed information about the result of the load

partition
Partition

The partition into which the model should be loaded

fileName
String

The name of the 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