Share via


DslDefinitionModelSerializationHelperBase.LoadModel Method

Definition

Overloads

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

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

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

Loads a DslLibrary instance.

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

Loads a DslLibrary instance into the default partition of the given store.

LoadModel(SerializationResult, Partition, String, ISchemaResolver, ValidationController, ISerializerLocator, Stream)

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

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

public:
 virtual Microsoft::VisualStudio::Modeling::DslDefinition::DslLibrary ^ LoadModel(Microsoft::VisualStudio::Modeling::Store ^ store, System::String ^ fileName, Microsoft::VisualStudio::Modeling::ISchemaResolver ^ schemaResolver, Microsoft::VisualStudio::Modeling::Validation::ValidationController ^ validationController, Microsoft::VisualStudio::Modeling::ISerializerLocator ^ serializerLocator);
public virtual Microsoft.VisualStudio.Modeling.DslDefinition.DslLibrary LoadModel (Microsoft.VisualStudio.Modeling.Store store, string fileName, Microsoft.VisualStudio.Modeling.ISchemaResolver schemaResolver, Microsoft.VisualStudio.Modeling.Validation.ValidationController validationController, Microsoft.VisualStudio.Modeling.ISerializerLocator serializerLocator);
abstract member LoadModel : Microsoft.VisualStudio.Modeling.Store * string * Microsoft.VisualStudio.Modeling.ISchemaResolver * Microsoft.VisualStudio.Modeling.Validation.ValidationController * Microsoft.VisualStudio.Modeling.ISerializerLocator -> Microsoft.VisualStudio.Modeling.DslDefinition.DslLibrary
override this.LoadModel : Microsoft.VisualStudio.Modeling.Store * string * Microsoft.VisualStudio.Modeling.ISchemaResolver * Microsoft.VisualStudio.Modeling.Validation.ValidationController * Microsoft.VisualStudio.Modeling.ISerializerLocator -> Microsoft.VisualStudio.Modeling.DslDefinition.DslLibrary
Public Overridable Function LoadModel (store As Store, fileName 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.

fileName
String

Name of the file from which the DslLibrary 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

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

Loads a DslLibrary instance.

public:
 virtual Microsoft::VisualStudio::Modeling::DslDefinition::DslLibrary ^ LoadModel(Microsoft::VisualStudio::Modeling::SerializationResult ^ serializationResult, Microsoft::VisualStudio::Modeling::Partition ^ partition, System::String ^ fileName, Microsoft::VisualStudio::Modeling::ISchemaResolver ^ schemaResolver, Microsoft::VisualStudio::Modeling::Validation::ValidationController ^ validationController, Microsoft::VisualStudio::Modeling::ISerializerLocator ^ serializerLocator);
public virtual Microsoft.VisualStudio.Modeling.DslDefinition.DslLibrary LoadModel (Microsoft.VisualStudio.Modeling.SerializationResult serializationResult, Microsoft.VisualStudio.Modeling.Partition partition, string fileName, Microsoft.VisualStudio.Modeling.ISchemaResolver schemaResolver, Microsoft.VisualStudio.Modeling.Validation.ValidationController validationController, Microsoft.VisualStudio.Modeling.ISerializerLocator serializerLocator);
abstract member LoadModel : Microsoft.VisualStudio.Modeling.SerializationResult * 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.LoadModel : Microsoft.VisualStudio.Modeling.SerializationResult * 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 LoadModel (serializationResult As SerializationResult, partition As Partition, fileName As String, schemaResolver As ISchemaResolver, validationController As ValidationController, serializerLocator As ISerializerLocator) As DslLibrary

Parameters

serializationResult
SerializationResult

Stores serialization result from the load operation.

partition
Partition

Partition in which the new DslLibrary instance will be created.

fileName
String

Name of the file from which the DslLibrary 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

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

Loads a DslLibrary instance into the default partition of the given store.

public:
 virtual Microsoft::VisualStudio::Modeling::DslDefinition::DslLibrary ^ LoadModel(Microsoft::VisualStudio::Modeling::SerializationResult ^ serializationResult, Microsoft::VisualStudio::Modeling::Store ^ store, System::String ^ fileName, Microsoft::VisualStudio::Modeling::ISchemaResolver ^ schemaResolver, Microsoft::VisualStudio::Modeling::Validation::ValidationController ^ validationController, Microsoft::VisualStudio::Modeling::ISerializerLocator ^ serializerLocator);
public virtual Microsoft.VisualStudio.Modeling.DslDefinition.DslLibrary LoadModel (Microsoft.VisualStudio.Modeling.SerializationResult serializationResult, Microsoft.VisualStudio.Modeling.Store store, string fileName, Microsoft.VisualStudio.Modeling.ISchemaResolver schemaResolver, Microsoft.VisualStudio.Modeling.Validation.ValidationController validationController, Microsoft.VisualStudio.Modeling.ISerializerLocator serializerLocator);
abstract member LoadModel : Microsoft.VisualStudio.Modeling.SerializationResult * Microsoft.VisualStudio.Modeling.Store * string * Microsoft.VisualStudio.Modeling.ISchemaResolver * Microsoft.VisualStudio.Modeling.Validation.ValidationController * Microsoft.VisualStudio.Modeling.ISerializerLocator -> Microsoft.VisualStudio.Modeling.DslDefinition.DslLibrary
override this.LoadModel : Microsoft.VisualStudio.Modeling.SerializationResult * Microsoft.VisualStudio.Modeling.Store * string * Microsoft.VisualStudio.Modeling.ISchemaResolver * Microsoft.VisualStudio.Modeling.Validation.ValidationController * Microsoft.VisualStudio.Modeling.ISerializerLocator -> Microsoft.VisualStudio.Modeling.DslDefinition.DslLibrary
Public Overridable Function LoadModel (serializationResult As SerializationResult, store As Store, fileName 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.

fileName
String

Name of the file from which the DslLibrary 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

LoadModel(SerializationResult, Partition, String, ISchemaResolver, ValidationController, ISerializerLocator, Stream)

public:
 virtual Microsoft::VisualStudio::Modeling::DslDefinition::DslLibrary ^ LoadModel(Microsoft::VisualStudio::Modeling::SerializationResult ^ serializationResult, Microsoft::VisualStudio::Modeling::Partition ^ partition, System::String ^ location, Microsoft::VisualStudio::Modeling::ISchemaResolver ^ schemaResolver, Microsoft::VisualStudio::Modeling::Validation::ValidationController ^ validationController, Microsoft::VisualStudio::Modeling::ISerializerLocator ^ serializerLocator, System::IO::Stream ^ stream);
public virtual Microsoft.VisualStudio.Modeling.DslDefinition.DslLibrary LoadModel (Microsoft.VisualStudio.Modeling.SerializationResult serializationResult, Microsoft.VisualStudio.Modeling.Partition partition, string location, Microsoft.VisualStudio.Modeling.ISchemaResolver schemaResolver, Microsoft.VisualStudio.Modeling.Validation.ValidationController validationController, Microsoft.VisualStudio.Modeling.ISerializerLocator serializerLocator, System.IO.Stream stream);
abstract member LoadModel : Microsoft.VisualStudio.Modeling.SerializationResult * Microsoft.VisualStudio.Modeling.Partition * string * Microsoft.VisualStudio.Modeling.ISchemaResolver * Microsoft.VisualStudio.Modeling.Validation.ValidationController * Microsoft.VisualStudio.Modeling.ISerializerLocator * System.IO.Stream -> Microsoft.VisualStudio.Modeling.DslDefinition.DslLibrary
override this.LoadModel : Microsoft.VisualStudio.Modeling.SerializationResult * Microsoft.VisualStudio.Modeling.Partition * string * Microsoft.VisualStudio.Modeling.ISchemaResolver * Microsoft.VisualStudio.Modeling.Validation.ValidationController * Microsoft.VisualStudio.Modeling.ISerializerLocator * System.IO.Stream -> Microsoft.VisualStudio.Modeling.DslDefinition.DslLibrary
Public Overridable Function LoadModel (serializationResult As SerializationResult, partition As Partition, location As String, schemaResolver As ISchemaResolver, validationController As ValidationController, serializerLocator As ISerializerLocator, stream As Stream) As DslLibrary

Parameters

serializationResult
SerializationResult
partition
Partition
location
String
schemaResolver
ISchemaResolver
validationController
ValidationController
serializerLocator
ISerializerLocator
stream
Stream

Returns

Applies to