Share via


DslDefinitionModelDomainModelSerializerBase.LoadModelAndDiagram Method

Loads a DslLibrary instance and its associated diagram file.

Namespace:  Microsoft.VisualStudio.Modeling.DslDefinition
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.DslDefinition.11.0 (in Microsoft.VisualStudio.Modeling.Sdk.DslDefinition.11.0.dll)

Syntax

'Declaration
Public Function LoadModelAndDiagram ( _
    serializationResult As SerializationResult, _
    modelPartition As Partition, _
    modelFileName As String, _
    diagramPartition As Partition, _
    diagramFileName As String, _
    serializerLocator As ISerializerLocator _
) As ModelElement
public ModelElement LoadModelAndDiagram(
    SerializationResult serializationResult,
    Partition modelPartition,
    string modelFileName,
    Partition diagramPartition,
    string diagramFileName,
    ISerializerLocator serializerLocator
)
public:
virtual ModelElement^ LoadModelAndDiagram(
    SerializationResult^ serializationResult, 
    Partition^ modelPartition, 
    String^ modelFileName, 
    Partition^ diagramPartition, 
    String^ diagramFileName, 
    ISerializerLocator^ serializerLocator
) sealed
abstract LoadModelAndDiagram : 
        serializationResult:SerializationResult * 
        modelPartition:Partition * 
        modelFileName:string * 
        diagramPartition:Partition * 
        diagramFileName:string * 
        serializerLocator:ISerializerLocator -> ModelElement  
override LoadModelAndDiagram : 
        serializationResult:SerializationResult * 
        modelPartition:Partition * 
        modelFileName:string * 
        diagramPartition:Partition * 
        diagramFileName:string * 
        serializerLocator:ISerializerLocator -> ModelElement
public final function LoadModelAndDiagram(
    serializationResult : SerializationResult, 
    modelPartition : Partition, 
    modelFileName : String, 
    diagramPartition : Partition, 
    diagramFileName : String, 
    serializerLocator : ISerializerLocator
) : ModelElement

Parameters

  • modelFileName
    Type: String

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

  • diagramFileName
    Type: String

    Name of the file from which the global::Microsoft.VisualStudio.Modeling.DslDesigner.DslDesignerDiagram instance will be deserialized.

Return Value

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

Implements

IDomainModelSerializer.LoadModelAndDiagram(SerializationResult, Partition, String, Partition, String, ISerializerLocator)

.NET Framework Security

See Also

Reference

DslDefinitionModelDomainModelSerializerBase Class

Microsoft.VisualStudio.Modeling.DslDefinition Namespace