IDomainModelSerializer.SaveModel Method
Save the model rooted on the specified element to a file
Namespace: Microsoft.VisualStudio.Modeling
Assembly: Microsoft.VisualStudio.Modeling.Sdk.11.0 (in Microsoft.VisualStudio.Modeling.Sdk.11.0.dll)
Syntax
'Declaration
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.SerializationResultDetailed information about the result of the save
modelRoot
Type: Microsoft.VisualStudio.Modeling.ModelElementThe root model element to save
fileName
Type: StringThe file to save to
encoding
Type: EncodingThe 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.