DslDefinitionModelDomainModelSerializerBase.SaveModel Method
Saves the given model root to the given file, 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
'Déclaration
Public Sub SaveModel ( _
serializationResult As SerializationResult, _
modelRoot As ModelElement, _
fileName As String, _
encoding As Encoding _
)
public void SaveModel(
SerializationResult serializationResult,
ModelElement modelRoot,
string fileName,
Encoding encoding
)
public:
virtual void SaveModel(
SerializationResult^ serializationResult,
ModelElement^ modelRoot,
String^ fileName,
Encoding^ encoding
) sealed
abstract SaveModel :
serializationResult:SerializationResult *
modelRoot:ModelElement *
fileName:string *
encoding:Encoding -> unit
override SaveModel :
serializationResult:SerializationResult *
modelRoot:ModelElement *
fileName:string *
encoding:Encoding -> unit
public final function SaveModel(
serializationResult : SerializationResult,
modelRoot : ModelElement,
fileName : 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.
- fileName
Type: System.String
Name of the file in which the DslLibrary instance will be saved.
- encoding
Type: System.Text.Encoding
Encoding to use when saving the DslLibrary instance.
Implements
IDomainModelSerializer.SaveModel(SerializationResult, ModelElement, String, Encoding)
.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.