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
serializationResult
Type: Microsoft.VisualStudio.Modeling.SerializationResultStores serialization result from the load operation.
modelPartition
Type: Microsoft.VisualStudio.Modeling.PartitionPartition in which the new DslLibrary instance will be created.
modelFileName
Type: StringName of the file from which the DslLibrary instance will be deserialized.
diagramPartition
Type: Microsoft.VisualStudio.Modeling.PartitionPartition in which the new global::Microsoft.VisualStudio.Modeling.DslDesigner.DslDesignerDiagram instance will be created.
diagramFileName
Type: StringName of the file from which the global::Microsoft.VisualStudio.Modeling.DslDesigner.DslDesignerDiagram instance will be deserialized.
serializerLocator
Type: Microsoft.VisualStudio.Modeling.ISerializerLocatorUsed 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
.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.