共用方式為


DslDefinitionModelDomainModelSerializerBase.LoadModelAndDiagram 方法

載入 DslLibrary 執行個體和它關聯的圖檔。

命名空間:  Microsoft.VisualStudio.Modeling.DslDefinition
組件:  Microsoft.VisualStudio.Modeling.Sdk.DslDefinition.11.0 (在 Microsoft.VisualStudio.Modeling.Sdk.DslDefinition.11.0.dll 中)

語法

'宣告
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
)

參數

  • modelFileName
    型別:System.String
    還原序列化的 DslLibrary 執行個體檔案名稱。
  • diagramFileName
    型別:System.String
    還原序列化的 global::Microsoft.VisualStudio.Modeling.DslDesigner.DslDesignerDiagram 執行個體檔案名稱。

傳回值

型別:Microsoft.VisualStudio.Modeling.ModelElement
已載入的 DslLibrary 執行個體。

實作

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

.NET Framework 安全性

請參閱

參考

DslDefinitionModelDomainModelSerializerBase 類別

Microsoft.VisualStudio.Modeling.DslDefinition 命名空間