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
- serializationResult
Type: Microsoft.VisualStudio.Modeling.SerializationResult
Stores serialization result from the load operation.
- partition
Type: Microsoft.VisualStudio.Modeling.Partition
Partition in which the new DslLibrary instance will be created.
- fileName
Type: System.String
Name of the file from which the DslLibrary instance will be deserialized.
- serializerLocator
Type: Microsoft.VisualStudio.Modeling.ISerializerLocator
Used to locate any additional domain model types required to load the model. Can be null.
Return Value
Type: Microsoft.VisualStudio.Modeling.ModelElement
The loaded DslLibrary instance.
Implements
IDomainModelSerializer.LoadModel(SerializationResult, Partition, String, ISerializerLocator)
.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.