Share via


IDomainModelSerializer.SaveModel Method

Definition

Save the model rooted on the specified element to a file

public:
 void SaveModel(Microsoft::VisualStudio::Modeling::SerializationResult ^ serializationResult, Microsoft::VisualStudio::Modeling::ModelElement ^ modelRoot, System::String ^ fileName, System::Text::Encoding ^ encoding);
public void SaveModel (Microsoft.VisualStudio.Modeling.SerializationResult serializationResult, Microsoft.VisualStudio.Modeling.ModelElement modelRoot, string fileName, System.Text.Encoding encoding);
abstract member SaveModel : Microsoft.VisualStudio.Modeling.SerializationResult * Microsoft.VisualStudio.Modeling.ModelElement * string * System.Text.Encoding -> unit
Public Sub SaveModel (serializationResult As SerializationResult, modelRoot As ModelElement, fileName As String, encoding As Encoding)

Parameters

serializationResult
SerializationResult

Detailed information about the result of the save

modelRoot
ModelElement

The root model element to save

fileName
String

The file to save to

encoding
Encoding

The encoding to use

Applies to