Share via


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.11.0 (in Microsoft.VisualStudio.Modeling.Sdk.DslDefinition.11.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

  • fileName
    Type: String

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

  • encoding
    Type: Encoding

    Encoding to use when saving the DslLibrary instance.

Implements

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

.NET Framework Security

See Also

Reference

DslDefinitionModelDomainModelSerializerBase Class

Microsoft.VisualStudio.Modeling.DslDefinition Namespace