Bagikan melalui


DslDefinitionModelSerializationHelperBase.SaveModel Method (SerializationResult, DslLibrary, String, Encoding, Boolean)

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 Overridable Sub SaveModel ( _
    serializationResult As SerializationResult, _
    modelRoot As DslLibrary, _
    fileName As String, _
    encoding As Encoding, _
    writeOptionalPropertiesWithDefaultValue As Boolean _
)
public virtual void SaveModel(
    SerializationResult serializationResult,
    DslLibrary modelRoot,
    string fileName,
    Encoding encoding,
    bool writeOptionalPropertiesWithDefaultValue
)
public:
virtual void SaveModel(
    SerializationResult^ serializationResult, 
    DslLibrary^ modelRoot, 
    String^ fileName, 
    Encoding^ encoding, 
    bool writeOptionalPropertiesWithDefaultValue
)
abstract SaveModel : 
        serializationResult:SerializationResult * 
        modelRoot:DslLibrary * 
        fileName:string * 
        encoding:Encoding * 
        writeOptionalPropertiesWithDefaultValue:bool -> unit  
override SaveModel : 
        serializationResult:SerializationResult * 
        modelRoot:DslLibrary * 
        fileName:string * 
        encoding:Encoding * 
        writeOptionalPropertiesWithDefaultValue:bool -> unit
public function SaveModel(
    serializationResult : SerializationResult, 
    modelRoot : DslLibrary, 
    fileName : String, 
    encoding : Encoding, 
    writeOptionalPropertiesWithDefaultValue : boolean
)

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.

  • writeOptionalPropertiesWithDefaultValue
    Type: Boolean

    Whether optional properties with default value will be saved.

.NET Framework Security

See Also

Reference

DslDefinitionModelSerializationHelperBase Class

SaveModel Overload

Microsoft.VisualStudio.Modeling.DslDefinition Namespace