IDomainModelSerializer.SaveModel Method
Save the model rooted on the specified element to a file
Namespace: Microsoft.VisualStudio.Modeling
Assembly: Microsoft.VisualStudio.Modeling.Sdk.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.10.0.dll)
Syntax
'Declaração
Sub SaveModel ( _
serializationResult As SerializationResult, _
modelRoot As ModelElement, _
fileName As String, _
encoding As Encoding _
)
void SaveModel(
SerializationResult serializationResult,
ModelElement modelRoot,
string fileName,
Encoding encoding
)
void SaveModel(
SerializationResult^ serializationResult,
ModelElement^ modelRoot,
String^ fileName,
Encoding^ encoding
)
abstract SaveModel :
serializationResult:SerializationResult *
modelRoot:ModelElement *
fileName:string *
encoding:Encoding -> unit
function SaveModel(
serializationResult : SerializationResult,
modelRoot : ModelElement,
fileName : String,
encoding : Encoding
)
Parameters
- serializationResult
Type: Microsoft.VisualStudio.Modeling.SerializationResult
Detailed information about the result of the save
- modelRoot
Type: Microsoft.VisualStudio.Modeling.ModelElement
The root model element to save
- fileName
Type: System.String
The file to save to
- encoding
Type: System.Text.Encoding
The encoding to use
.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.