DslDefinitionModelDomainModelSerializerBase.SaveModelAndDiagram Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Saves the given DslLibrary and global::Microsoft.VisualStudio.Modeling.DslDesigner.DslDesignerDiagram to the given files, with specified encoding.
public:
virtual void SaveModelAndDiagram(Microsoft::VisualStudio::Modeling::SerializationResult ^ serializationResult, Microsoft::VisualStudio::Modeling::ModelElement ^ modelRoot, System::String ^ modelFileName, Microsoft::VisualStudio::Modeling::ModelElement ^ diagram, System::String ^ diagramFileName, System::Text::Encoding ^ encoding);
public void SaveModelAndDiagram (Microsoft.VisualStudio.Modeling.SerializationResult serializationResult, Microsoft.VisualStudio.Modeling.ModelElement modelRoot, string modelFileName, Microsoft.VisualStudio.Modeling.ModelElement diagram, string diagramFileName, System.Text.Encoding encoding);
abstract member SaveModelAndDiagram : Microsoft.VisualStudio.Modeling.SerializationResult * Microsoft.VisualStudio.Modeling.ModelElement * string * Microsoft.VisualStudio.Modeling.ModelElement * string * System.Text.Encoding -> unit
override this.SaveModelAndDiagram : Microsoft.VisualStudio.Modeling.SerializationResult * Microsoft.VisualStudio.Modeling.ModelElement * string * Microsoft.VisualStudio.Modeling.ModelElement * string * System.Text.Encoding -> unit
Public Sub SaveModelAndDiagram (serializationResult As SerializationResult, modelRoot As ModelElement, modelFileName As String, diagram As ModelElement, diagramFileName As String, encoding As Encoding)
Parameters
- serializationResult
- SerializationResult
Stores serialization result from the save operation.
- modelRoot
- ModelElement
DslLibrary instance to be saved.
- modelFileName
- String
Name of the file in which the CanonicalSampleRoot instance will be saved.
- diagram
- ModelElement
global::Microsoft.VisualStudio.Modeling.DslDesigner.DslDesignerDiagram to be saved.
- diagramFileName
- String
Name of the file in which the diagram will be saved.
- encoding
- Encoding
Encoding to use when saving the diagram.