DslDefinitionModelSerializationHelperBase.LoadModelAndDiagram Method (SerializationResult, Partition, String, Partition, String, ISchemaResolver, ValidationController, ISerializerLocator)
Loads a DslLibrary instance and its associated diagram file.
Namespace: Microsoft.VisualStudio.Modeling.DslDefinition
Assembly: Microsoft.VisualStudio.Modeling.Sdk.DslDefinition.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.DslDefinition.10.0.dll)
Syntax
'Déclaration
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
public virtual DslLibrary LoadModelAndDiagram(
SerializationResult serializationResult,
Partition modelPartition,
string modelFileName,
Partition diagramPartition,
string diagramFileName,
ISchemaResolver schemaResolver,
ValidationController validationController,
ISerializerLocator serializerLocator
)
public:
virtual DslLibrary^ LoadModelAndDiagram(
SerializationResult^ serializationResult,
Partition^ modelPartition,
String^ modelFileName,
Partition^ diagramPartition,
String^ diagramFileName,
ISchemaResolver^ schemaResolver,
ValidationController^ validationController,
ISerializerLocator^ serializerLocator
)
abstract LoadModelAndDiagram :
serializationResult:SerializationResult *
modelPartition:Partition *
modelFileName:string *
diagramPartition:Partition *
diagramFileName:string *
schemaResolver:ISchemaResolver *
validationController:ValidationController *
serializerLocator:ISerializerLocator -> DslLibrary
override LoadModelAndDiagram :
serializationResult:SerializationResult *
modelPartition:Partition *
modelFileName:string *
diagramPartition:Partition *
diagramFileName:string *
schemaResolver:ISchemaResolver *
validationController:ValidationController *
serializerLocator:ISerializerLocator -> DslLibrary
public function LoadModelAndDiagram(
serializationResult : SerializationResult,
modelPartition : Partition,
modelFileName : String,
diagramPartition : Partition,
diagramFileName : String,
schemaResolver : ISchemaResolver,
validationController : ValidationController,
serializerLocator : ISerializerLocator
) : DslLibrary
Parameters
- serializationResult
Type: Microsoft.VisualStudio.Modeling.SerializationResult
Stores serialization result from the load operation.
- modelPartition
Type: Microsoft.VisualStudio.Modeling.Partition
Partition in which the new DslLibrary instance will be created.
- modelFileName
Type: System.String
Name of the file from which the DslLibrary instance will be deserialized.
- diagramPartition
Type: Microsoft.VisualStudio.Modeling.Partition
Partition in which the new DslDesignerDiagram instance will be created.
- diagramFileName
Type: System.String
Name of the file from which the DslDesignerDiagram instance will be deserialized.
- schemaResolver
Type: Microsoft.VisualStudio.Modeling.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
Type: Microsoft.VisualStudio.Modeling.Validation.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
Type: Microsoft.VisualStudio.Modeling.ISerializerLocator
Return Value
Type: Microsoft.VisualStudio.Modeling.DslDefinition.DslLibrary
The loaded DslLibrary instance.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.