IDomainModelSerializer.SaveModel Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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