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.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.DslDefinition.12.0.dll)
Syntax
'Declaration
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.SerializationResultStores serialization result from the save operation.
modelRoot
Type: Microsoft.VisualStudio.Modeling.ModelElementDslLibrary instance to be saved.
fileName
Type: System.StringName of the file in which the DslLibrary instance will be saved.
encoding
Type: System.Text.EncodingEncoding 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.