Partager via


DslDefinitionModelSerializationHelperBase.LoadModelAndDiagram Method (SerializationResult, Store, String, String, ISchemaResolver, ValidationController, ISerializerLocator)

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

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, _
    store As Store, _
    modelFileName As String, _
    diagramFileName As String, _
    schemaResolver As ISchemaResolver, _
    validationController As ValidationController, _
    serializerLocator As ISerializerLocator _
) As DslLibrary
public virtual DslLibrary LoadModelAndDiagram(
    SerializationResult serializationResult,
    Store store,
    string modelFileName,
    string diagramFileName,
    ISchemaResolver schemaResolver,
    ValidationController validationController,
    ISerializerLocator serializerLocator
)
public:
virtual DslLibrary^ LoadModelAndDiagram(
    SerializationResult^ serializationResult, 
    Store^ store, 
    String^ modelFileName, 
    String^ diagramFileName, 
    ISchemaResolver^ schemaResolver, 
    ValidationController^ validationController, 
    ISerializerLocator^ serializerLocator
)
abstract LoadModelAndDiagram : 
        serializationResult:SerializationResult * 
        store:Store * 
        modelFileName:string * 
        diagramFileName:string * 
        schemaResolver:ISchemaResolver * 
        validationController:ValidationController * 
        serializerLocator:ISerializerLocator -> DslLibrary 
override LoadModelAndDiagram : 
        serializationResult:SerializationResult * 
        store:Store * 
        modelFileName:string * 
        diagramFileName:string * 
        schemaResolver:ISchemaResolver * 
        validationController:ValidationController * 
        serializerLocator:ISerializerLocator -> DslLibrary 
public function LoadModelAndDiagram(
    serializationResult : SerializationResult, 
    store : Store, 
    modelFileName : String, 
    diagramFileName : String, 
    schemaResolver : ISchemaResolver, 
    validationController : ValidationController, 
    serializerLocator : ISerializerLocator
) : DslLibrary

Parameters

  • modelFileName
    Type: System.String
    Name of the file from which the DslLibrary instance will be deserialized.
  • 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.

Return Value

Type: Microsoft.VisualStudio.Modeling.DslDefinition.DslLibrary
The loaded DslLibrary instance.

.NET Framework Security

See Also

Reference

DslDefinitionModelSerializationHelperBase Class

LoadModelAndDiagram Overload

Microsoft.VisualStudio.Modeling.DslDefinition Namespace