Freigeben über


DslDefinitionModelDomainModelSerializerBase.LoadModel Method

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

'Declaration
Public Overridable Function LoadModel ( _
    serializationResult As SerializationResult, _
    partition As Partition, _
    fileName As String, _
    serializerLocator As ISerializerLocator _
) As ModelElement
public virtual ModelElement LoadModel(
    SerializationResult serializationResult,
    Partition partition,
    string fileName,
    ISerializerLocator serializerLocator
)
public:
virtual ModelElement^ LoadModel(
    SerializationResult^ serializationResult, 
    Partition^ partition, 
    String^ fileName, 
    ISerializerLocator^ serializerLocator
)
abstract LoadModel : 
        serializationResult:SerializationResult * 
        partition:Partition * 
        fileName:string * 
        serializerLocator:ISerializerLocator -> ModelElement 
override LoadModel : 
        serializationResult:SerializationResult * 
        partition:Partition * 
        fileName:string * 
        serializerLocator:ISerializerLocator -> ModelElement 
public function LoadModel(
    serializationResult : SerializationResult, 
    partition : Partition, 
    fileName : String, 
    serializerLocator : ISerializerLocator
) : ModelElement

Parameters

  • fileName
    Type: System.String
    Name of the file from which the DslLibrary instance will be deserialized.

Return Value

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

Implements

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

.NET Framework Security

See Also

Reference

DslDefinitionModelDomainModelSerializerBase Class

Microsoft.VisualStudio.Modeling.DslDefinition Namespace