Delen via


DslDefinitionModelDomainModelSerializerBase.SaveModelAndDiagram Method

Saves the given DslLibrary and global::Microsoft.VisualStudio.Modeling.DslDesigner.DslDesignerDiagram to the given files, with specified encoding.

Namespace:  Microsoft.VisualStudio.Modeling.DslDefinition
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.DslDefinition.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.DslDefinition.12.0.dll)

Syntax

'Declaration
Public Sub SaveModelAndDiagram ( _
    serializationResult As SerializationResult, _
    modelRoot As ModelElement, _
    modelFileName As String, _
    diagram As ModelElement, _
    diagramFileName As String, _
    encoding As Encoding _
)
public void SaveModelAndDiagram(
    SerializationResult serializationResult,
    ModelElement modelRoot,
    string modelFileName,
    ModelElement diagram,
    string diagramFileName,
    Encoding encoding
)
public:
virtual void SaveModelAndDiagram(
    SerializationResult^ serializationResult, 
    ModelElement^ modelRoot, 
    String^ modelFileName, 
    ModelElement^ diagram, 
    String^ diagramFileName, 
    Encoding^ encoding
) sealed
abstract SaveModelAndDiagram : 
        serializationResult:SerializationResult * 
        modelRoot:ModelElement * 
        modelFileName:string * 
        diagram:ModelElement * 
        diagramFileName:string * 
        encoding:Encoding -> unit  
override SaveModelAndDiagram : 
        serializationResult:SerializationResult * 
        modelRoot:ModelElement * 
        modelFileName:string * 
        diagram:ModelElement * 
        diagramFileName:string * 
        encoding:Encoding -> unit
public final function SaveModelAndDiagram(
    serializationResult : SerializationResult, 
    modelRoot : ModelElement, 
    modelFileName : String, 
    diagram : ModelElement, 
    diagramFileName : String, 
    encoding : Encoding
)

Parameters

  • modelFileName
    Type: System.String

    Name of the file in which the CanonicalSampleRoot instance will be saved.

  • diagramFileName
    Type: System.String

    Name of the file in which the diagram will be saved.

Implements

IDomainModelSerializer.SaveModelAndDiagram(SerializationResult, ModelElement, String, ModelElement, String, Encoding)

.NET Framework Security

See Also

Reference

DslDefinitionModelDomainModelSerializerBase Class

Microsoft.VisualStudio.Modeling.DslDefinition Namespace