次の方法で共有


DslDefinitionModelSerializationHelperBase.SaveModel Method (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.

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 _
)
public virtual void SaveModel(
    SerializationResult serializationResult,
    DslLibrary modelRoot,
    string fileName
)
public:
virtual void SaveModel(
    SerializationResult^ serializationResult, 
    DslLibrary^ modelRoot, 
    String^ fileName
)
abstract SaveModel : 
        serializationResult:SerializationResult * 
        modelRoot:DslLibrary * 
        fileName:string -> unit 
override SaveModel : 
        serializationResult:SerializationResult * 
        modelRoot:DslLibrary * 
        fileName:string -> unit 
public function SaveModel(
    serializationResult : SerializationResult, 
    modelRoot : DslLibrary, 
    fileName : String
)

Parameters

  • fileName
    Type: System.String
    Name of the file in which the DslLibrary instance will be saved.

.NET Framework Security

See Also

Reference

DslDefinitionModelSerializationHelperBase Class

SaveModel Overload

Microsoft.VisualStudio.Modeling.DslDefinition Namespace