Compartilhar via


DslDefinitionModelDomainModelSerializerBase.SaveModel Method

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

Namespace:  Microsoft.VisualStudio.Modeling.DslDefinition
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.DslDefinition.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.DslDefinition.10.0.dll)

Syntax

'Declaração
Public Sub SaveModel ( _
    serializationResult As SerializationResult, _
    modelRoot As ModelElement, _
    fileName As String, _
    encoding As Encoding _
)
public void SaveModel(
    SerializationResult serializationResult,
    ModelElement modelRoot,
    string fileName,
    Encoding encoding
)
public:
virtual void SaveModel(
    SerializationResult^ serializationResult, 
    ModelElement^ modelRoot, 
    String^ fileName, 
    Encoding^ encoding
) sealed
abstract SaveModel : 
        serializationResult:SerializationResult * 
        modelRoot:ModelElement * 
        fileName:string * 
        encoding:Encoding -> unit 
override SaveModel : 
        serializationResult:SerializationResult * 
        modelRoot:ModelElement * 
        fileName:string * 
        encoding:Encoding -> unit 
public final function SaveModel(
    serializationResult : SerializationResult, 
    modelRoot : ModelElement, 
    fileName : String, 
    encoding : Encoding
)

Parameters

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

Implements

IDomainModelSerializer.SaveModel(SerializationResult, ModelElement, String, Encoding)

.NET Framework Security

See Also

Reference

DslDefinitionModelDomainModelSerializerBase Class

Microsoft.VisualStudio.Modeling.DslDefinition Namespace