IDomainModelSerializer.SaveModelAndDiagram Method
Saves the model and diagram to files
Namespace: Microsoft.VisualStudio.Modeling
Assembly: Microsoft.VisualStudio.Modeling.Sdk.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.10.0.dll)
Syntax
'Declaration
Sub SaveModelAndDiagram ( _
serializationResult As SerializationResult, _
modelRoot As ModelElement, _
modelFileName As String, _
diagram As ModelElement, _
diagramFileName As String, _
encoding As Encoding _
)
void SaveModelAndDiagram(
SerializationResult serializationResult,
ModelElement modelRoot,
string modelFileName,
ModelElement diagram,
string diagramFileName,
Encoding encoding
)
void SaveModelAndDiagram(
SerializationResult^ serializationResult,
ModelElement^ modelRoot,
String^ modelFileName,
ModelElement^ diagram,
String^ diagramFileName,
Encoding^ encoding
)
abstract SaveModelAndDiagram :
serializationResult:SerializationResult *
modelRoot:ModelElement *
modelFileName:string *
diagram:ModelElement *
diagramFileName:string *
encoding:Encoding -> unit
function SaveModelAndDiagram(
serializationResult : SerializationResult,
modelRoot : ModelElement,
modelFileName : String,
diagram : ModelElement,
diagramFileName : 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
- modelFileName
Type: System.String
The file to save the model element tosave
- diagram
Type: Microsoft.VisualStudio.Modeling.ModelElement
The diagram to be saved
- diagramFileName
Type: System.String
The file to save the diagram 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.