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.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.DslDefinition.10.0.dll)
Syntax
'宣告
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
- serializationResult
Type: Microsoft.VisualStudio.Modeling.SerializationResult
Stores serialization result from the save operation.
- modelRoot
Type: Microsoft.VisualStudio.Modeling.ModelElement
DslLibrary instance to be saved.
- modelFileName
Type: System.String
Name of the file in which the CanonicalSampleRoot instance will be saved.
- diagram
Type: Microsoft.VisualStudio.Modeling.ModelElement
global::Microsoft.VisualStudio.Modeling.DslDesigner.DslDesignerDiagram to be saved.
- diagramFileName
Type: System.String
Name of the file in which the diagram will be saved.
- encoding
Type: System.Text.Encoding
Encoding to use when saving the diagram.
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.