Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Loads the model and diagram files into the specified partition and returns the root model element.
Namespace: Microsoft.VisualStudio.Modeling
Assembly: Microsoft.VisualStudio.Modeling.Sdk.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.10.0.dll)
Syntax
'Declaration
Function LoadModelAndDiagram ( _
serializationResult As SerializationResult, _
modelPartition As Partition, _
modelFileName As String, _
diagramPartition As Partition, _
diagramFileName As String, _
serializerLocator As ISerializerLocator _
) As ModelElement
ModelElement LoadModelAndDiagram(
SerializationResult serializationResult,
Partition modelPartition,
string modelFileName,
Partition diagramPartition,
string diagramFileName,
ISerializerLocator serializerLocator
)
ModelElement^ LoadModelAndDiagram(
SerializationResult^ serializationResult,
Partition^ modelPartition,
String^ modelFileName,
Partition^ diagramPartition,
String^ diagramFileName,
ISerializerLocator^ serializerLocator
)
abstract LoadModelAndDiagram :
serializationResult:SerializationResult *
modelPartition:Partition *
modelFileName:string *
diagramPartition:Partition *
diagramFileName:string *
serializerLocator:ISerializerLocator -> ModelElement
function LoadModelAndDiagram(
serializationResult : SerializationResult,
modelPartition : Partition,
modelFileName : String,
diagramPartition : Partition,
diagramFileName : String,
serializerLocator : ISerializerLocator
) : ModelElement
Parameters
- serializationResult
Type: Microsoft.VisualStudio.Modeling.SerializationResult
Detailed information about the result of the load
- modelPartition
Type: Microsoft.VisualStudio.Modeling.Partition
The partition into which the model should be loaded
- modelFileName
Type: System.String
The name of the model file to load
- diagramPartition
Type: Microsoft.VisualStudio.Modeling.Partition
The partition into which the diagram should be loaded
- diagramFileName
Type: System.String
The name of the diagram file to load
- serializerLocator
Type: Microsoft.VisualStudio.Modeling.ISerializerLocator
The serializer locator to use when attempting to resolve any additional domain model namespaces encountered in the model file. Can be null.
Return Value
Type: Microsoft.VisualStudio.Modeling.ModelElement
The root model element
.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.