다음을 통해 공유


DslDefinitionModelSerializationHelperBase.SaveModel Method

Definition

Overloads

SaveModel(SerializationResult, DslLibrary, String)

Saves the given model root to the given file, with default encoding (UTF-8), and optional properties with default value will not be written out.

SaveModel(SerializationResult, DslLibrary, String, Boolean)

Saves the given model to the given file, with default encoding (UTF-8).

SaveModel(SerializationResult, DslLibrary, String, Encoding, Boolean)

Saves the given model root to the given file, with specified encoding.

SaveModel(SerializationResult, DslLibrary, String)

Saves the given model root to the given file, with default encoding (UTF-8), and optional properties with default value will not be written out.

public:
 virtual void SaveModel(Microsoft::VisualStudio::Modeling::SerializationResult ^ serializationResult, Microsoft::VisualStudio::Modeling::DslDefinition::DslLibrary ^ modelRoot, System::String ^ fileName);
public virtual void SaveModel (Microsoft.VisualStudio.Modeling.SerializationResult serializationResult, Microsoft.VisualStudio.Modeling.DslDefinition.DslLibrary modelRoot, string fileName);
abstract member SaveModel : Microsoft.VisualStudio.Modeling.SerializationResult * Microsoft.VisualStudio.Modeling.DslDefinition.DslLibrary * string -> unit
override this.SaveModel : Microsoft.VisualStudio.Modeling.SerializationResult * Microsoft.VisualStudio.Modeling.DslDefinition.DslLibrary * string -> unit
Public Overridable Sub SaveModel (serializationResult As SerializationResult, modelRoot As DslLibrary, fileName As String)

Parameters

serializationResult
SerializationResult

Stores serialization result from the save operation.

modelRoot
DslLibrary

DslLibrary instance to be saved.

fileName
String

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

Applies to

SaveModel(SerializationResult, DslLibrary, String, Boolean)

Saves the given model to the given file, with default encoding (UTF-8).

public:
 virtual void SaveModel(Microsoft::VisualStudio::Modeling::SerializationResult ^ serializationResult, Microsoft::VisualStudio::Modeling::DslDefinition::DslLibrary ^ modelRoot, System::String ^ fileName, bool writeOptionalPropertiesWithDefaultValue);
public virtual void SaveModel (Microsoft.VisualStudio.Modeling.SerializationResult serializationResult, Microsoft.VisualStudio.Modeling.DslDefinition.DslLibrary modelRoot, string fileName, bool writeOptionalPropertiesWithDefaultValue);
abstract member SaveModel : Microsoft.VisualStudio.Modeling.SerializationResult * Microsoft.VisualStudio.Modeling.DslDefinition.DslLibrary * string * bool -> unit
override this.SaveModel : Microsoft.VisualStudio.Modeling.SerializationResult * Microsoft.VisualStudio.Modeling.DslDefinition.DslLibrary * string * bool -> unit
Public Overridable Sub SaveModel (serializationResult As SerializationResult, modelRoot As DslLibrary, fileName As String, writeOptionalPropertiesWithDefaultValue As Boolean)

Parameters

serializationResult
SerializationResult

Stores serialization result from the save operation.

modelRoot
DslLibrary

DslLibrary instance to be saved.

fileName
String

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

writeOptionalPropertiesWithDefaultValue
Boolean

Whether optional properties with default value will be saved.

Applies to

SaveModel(SerializationResult, DslLibrary, String, Encoding, Boolean)

Saves the given model root to the given file, with specified encoding.

public:
 virtual void SaveModel(Microsoft::VisualStudio::Modeling::SerializationResult ^ serializationResult, Microsoft::VisualStudio::Modeling::DslDefinition::DslLibrary ^ modelRoot, System::String ^ fileName, System::Text::Encoding ^ encoding, bool writeOptionalPropertiesWithDefaultValue);
public virtual void SaveModel (Microsoft.VisualStudio.Modeling.SerializationResult serializationResult, Microsoft.VisualStudio.Modeling.DslDefinition.DslLibrary modelRoot, string fileName, System.Text.Encoding encoding, bool writeOptionalPropertiesWithDefaultValue);
abstract member SaveModel : Microsoft.VisualStudio.Modeling.SerializationResult * Microsoft.VisualStudio.Modeling.DslDefinition.DslLibrary * string * System.Text.Encoding * bool -> unit
override this.SaveModel : Microsoft.VisualStudio.Modeling.SerializationResult * Microsoft.VisualStudio.Modeling.DslDefinition.DslLibrary * string * System.Text.Encoding * bool -> unit
Public Overridable Sub SaveModel (serializationResult As SerializationResult, modelRoot As DslLibrary, fileName As String, encoding As Encoding, writeOptionalPropertiesWithDefaultValue As Boolean)

Parameters

serializationResult
SerializationResult

Stores serialization result from the save operation.

modelRoot
DslLibrary

DslLibrary instance to be saved.

fileName
String

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

encoding
Encoding

Encoding to use when saving the DslLibrary instance.

writeOptionalPropertiesWithDefaultValue
Boolean

Whether optional properties with default value will be saved.

Applies to