Share via


DslDefinitionModelSerializationHelperBase.LoadModelAndDiagram Method

Definition

Overloads

LoadModelAndDiagram(SerializationResult, Partition, String, Partition, String, ISchemaResolver, ValidationController, ISerializerLocator)

Loads a DslLibrary instance and its associated diagram file.

LoadModelAndDiagram(Store, String, String, ISchemaResolver, ValidationController, ISerializerLocator)

Loads a DslLibrary instance and its associated diagram file into the default partition of the given store, and ignore serialization result.

LoadModelAndDiagram(SerializationResult, Store, String, String, ISchemaResolver, ValidationController, ISerializerLocator)

Loads a DslLibrary instance and its associated diagram file into the default partition of the given store.

LoadModelAndDiagram(SerializationResult, Partition, String, Partition, String, ISchemaResolver, ValidationController, ISerializerLocator)

Loads a DslLibrary instance and its associated diagram file.

public:
 virtual Microsoft::VisualStudio::Modeling::DslDefinition::DslLibrary ^ 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::ISchemaResolver ^ schemaResolver, Microsoft::VisualStudio::Modeling::Validation::ValidationController ^ validationController, Microsoft::VisualStudio::Modeling::ISerializerLocator ^ serializerLocator);
public virtual Microsoft.VisualStudio.Modeling.DslDefinition.DslLibrary LoadModelAndDiagram (Microsoft.VisualStudio.Modeling.SerializationResult serializationResult, Microsoft.VisualStudio.Modeling.Partition modelPartition, string modelFileName, Microsoft.VisualStudio.Modeling.Partition diagramPartition, string diagramFileName, Microsoft.VisualStudio.Modeling.ISchemaResolver schemaResolver, Microsoft.VisualStudio.Modeling.Validation.ValidationController validationController, 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.ISchemaResolver * Microsoft.VisualStudio.Modeling.Validation.ValidationController * Microsoft.VisualStudio.Modeling.ISerializerLocator -> Microsoft.VisualStudio.Modeling.DslDefinition.DslLibrary
override this.LoadModelAndDiagram : Microsoft.VisualStudio.Modeling.SerializationResult * Microsoft.VisualStudio.Modeling.Partition * string * Microsoft.VisualStudio.Modeling.Partition * string * Microsoft.VisualStudio.Modeling.ISchemaResolver * Microsoft.VisualStudio.Modeling.Validation.ValidationController * Microsoft.VisualStudio.Modeling.ISerializerLocator -> Microsoft.VisualStudio.Modeling.DslDefinition.DslLibrary
Public Overridable Function LoadModelAndDiagram (serializationResult As SerializationResult, modelPartition As Partition, modelFileName As String, diagramPartition As Partition, diagramFileName As String, schemaResolver As ISchemaResolver, validationController As ValidationController, serializerLocator As ISerializerLocator) As DslLibrary

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 DslDesignerDiagram instance will be created.

diagramFileName
String

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

schemaResolver
ISchemaResolver

An ISchemaResolver that allows the serializer to do schema validation on the root element (and everything inside it). If null is passed, schema validation will not be performed.

validationController
ValidationController

A ValidationController that will be used to do load-time validation (validations with validation category "Load"). If null is passed, load-time validation will not be performed.

serializerLocator
ISerializerLocator

An ISerializerLocator that will be used to locate any additional domain model types required to load the model. Can be null.

Returns

The loaded DslLibrary instance.

Applies to

LoadModelAndDiagram(Store, String, String, ISchemaResolver, ValidationController, ISerializerLocator)

Loads a DslLibrary instance and its associated diagram file into the default partition of the given store, and ignore serialization result.

public:
 virtual Microsoft::VisualStudio::Modeling::DslDefinition::DslLibrary ^ LoadModelAndDiagram(Microsoft::VisualStudio::Modeling::Store ^ store, System::String ^ modelFileName, System::String ^ diagramFileName, Microsoft::VisualStudio::Modeling::ISchemaResolver ^ schemaResolver, Microsoft::VisualStudio::Modeling::Validation::ValidationController ^ validationController, Microsoft::VisualStudio::Modeling::ISerializerLocator ^ serializerLocator);
public virtual Microsoft.VisualStudio.Modeling.DslDefinition.DslLibrary LoadModelAndDiagram (Microsoft.VisualStudio.Modeling.Store store, string modelFileName, string diagramFileName, Microsoft.VisualStudio.Modeling.ISchemaResolver schemaResolver, Microsoft.VisualStudio.Modeling.Validation.ValidationController validationController, Microsoft.VisualStudio.Modeling.ISerializerLocator serializerLocator);
abstract member LoadModelAndDiagram : Microsoft.VisualStudio.Modeling.Store * string * string * Microsoft.VisualStudio.Modeling.ISchemaResolver * Microsoft.VisualStudio.Modeling.Validation.ValidationController * Microsoft.VisualStudio.Modeling.ISerializerLocator -> Microsoft.VisualStudio.Modeling.DslDefinition.DslLibrary
override this.LoadModelAndDiagram : Microsoft.VisualStudio.Modeling.Store * string * string * Microsoft.VisualStudio.Modeling.ISchemaResolver * Microsoft.VisualStudio.Modeling.Validation.ValidationController * Microsoft.VisualStudio.Modeling.ISerializerLocator -> Microsoft.VisualStudio.Modeling.DslDefinition.DslLibrary
Public Overridable Function LoadModelAndDiagram (store As Store, modelFileName As String, diagramFileName As String, schemaResolver As ISchemaResolver, validationController As ValidationController, serializerLocator As ISerializerLocator) As DslLibrary

Parameters

store
Store

The new DslLibrary instance will be created into the default partition of this store.

modelFileName
String

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

diagramFileName
String

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

schemaResolver
ISchemaResolver

An ISchemaResolver that allows the serializer to do schema validation on the root element (and everything inside it). If null is passed, schema validation will not be performed.

validationController
ValidationController

A ValidationController that will be used to do load-time validation (validations with validation category "Load"). If null is passed, load-time validation will not be performed.

serializerLocator
ISerializerLocator

An ISerializerLocator that will be used to locate any additional domain model types required to load the model. Can be null.

Returns

The loaded DslLibrary instance.

Applies to

LoadModelAndDiagram(SerializationResult, Store, String, String, ISchemaResolver, ValidationController, ISerializerLocator)

Loads a DslLibrary instance and its associated diagram file into the default partition of the given store.

public:
 virtual Microsoft::VisualStudio::Modeling::DslDefinition::DslLibrary ^ LoadModelAndDiagram(Microsoft::VisualStudio::Modeling::SerializationResult ^ serializationResult, Microsoft::VisualStudio::Modeling::Store ^ store, System::String ^ modelFileName, System::String ^ diagramFileName, Microsoft::VisualStudio::Modeling::ISchemaResolver ^ schemaResolver, Microsoft::VisualStudio::Modeling::Validation::ValidationController ^ validationController, Microsoft::VisualStudio::Modeling::ISerializerLocator ^ serializerLocator);
public virtual Microsoft.VisualStudio.Modeling.DslDefinition.DslLibrary LoadModelAndDiagram (Microsoft.VisualStudio.Modeling.SerializationResult serializationResult, Microsoft.VisualStudio.Modeling.Store store, string modelFileName, string diagramFileName, Microsoft.VisualStudio.Modeling.ISchemaResolver schemaResolver, Microsoft.VisualStudio.Modeling.Validation.ValidationController validationController, Microsoft.VisualStudio.Modeling.ISerializerLocator serializerLocator);
abstract member LoadModelAndDiagram : Microsoft.VisualStudio.Modeling.SerializationResult * Microsoft.VisualStudio.Modeling.Store * string * string * Microsoft.VisualStudio.Modeling.ISchemaResolver * Microsoft.VisualStudio.Modeling.Validation.ValidationController * Microsoft.VisualStudio.Modeling.ISerializerLocator -> Microsoft.VisualStudio.Modeling.DslDefinition.DslLibrary
override this.LoadModelAndDiagram : Microsoft.VisualStudio.Modeling.SerializationResult * Microsoft.VisualStudio.Modeling.Store * string * string * Microsoft.VisualStudio.Modeling.ISchemaResolver * Microsoft.VisualStudio.Modeling.Validation.ValidationController * Microsoft.VisualStudio.Modeling.ISerializerLocator -> Microsoft.VisualStudio.Modeling.DslDefinition.DslLibrary
Public Overridable Function LoadModelAndDiagram (serializationResult As SerializationResult, store As Store, modelFileName As String, diagramFileName As String, schemaResolver As ISchemaResolver, validationController As ValidationController, serializerLocator As ISerializerLocator) As DslLibrary

Parameters

serializationResult
SerializationResult

Stores serialization result from the load operation.

store
Store

The new DslLibrary instance will be created into the default partition of this store.

modelFileName
String

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

diagramFileName
String

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

schemaResolver
ISchemaResolver

An ISchemaResolver that allows the serializer to do schema validation on the root element (and everything inside it). If null is passed, schema validation will not be performed.

validationController
ValidationController

A ValidationController that will be used to do load-time validation (validations with validation category "Load"). If null is passed, load-time validation will not be performed.

serializerLocator
ISerializerLocator

An ISerializerLocator that will be used to locate any additional domain model types required to load the model. Can be null.

Returns

The loaded DslLibrary instance.

Applies to