DslDefinitionModelSerializationHelperBase.SaveModel Method (SerializationResult, DslLibrary, String, Boolean)
Saves the given model to the given file, with default encoding (UTF-8).
Namespace: Microsoft.VisualStudio.Modeling.DslDefinition
Assembly: Microsoft.VisualStudio.Modeling.Sdk.DslDefinition.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.DslDefinition.10.0.dll)
Syntax
'宣告
Public Overridable Sub SaveModel ( _
serializationResult As SerializationResult, _
modelRoot As DslLibrary, _
fileName As String, _
writeOptionalPropertiesWithDefaultValue As Boolean _
)
public virtual void SaveModel(
SerializationResult serializationResult,
DslLibrary modelRoot,
string fileName,
bool writeOptionalPropertiesWithDefaultValue
)
public:
virtual void SaveModel(
SerializationResult^ serializationResult,
DslLibrary^ modelRoot,
String^ fileName,
bool writeOptionalPropertiesWithDefaultValue
)
abstract SaveModel :
serializationResult:SerializationResult *
modelRoot:DslLibrary *
fileName:string *
writeOptionalPropertiesWithDefaultValue:bool -> unit
override SaveModel :
serializationResult:SerializationResult *
modelRoot:DslLibrary *
fileName:string *
writeOptionalPropertiesWithDefaultValue:bool -> unit
public function SaveModel(
serializationResult : SerializationResult,
modelRoot : DslLibrary,
fileName : String,
writeOptionalPropertiesWithDefaultValue : boolean
)
Parameters
- serializationResult
Type: Microsoft.VisualStudio.Modeling.SerializationResult
Stores serialization result from the save operation.
- modelRoot
Type: Microsoft.VisualStudio.Modeling.DslDefinition.DslLibrary
DslLibrary instance to be saved.
- fileName
Type: System.String
Name of the file in which the DslLibrary instance will be saved.
- writeOptionalPropertiesWithDefaultValue
Type: System.Boolean
Whether optional properties with default value will be saved.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.