DslDefinitionModelSerializationHelperBase.GetSerializedModelString Method
Return the model in XML format
Namespace: Microsoft.VisualStudio.Modeling.DslDefinition
Assembly: Microsoft.VisualStudio.Modeling.Sdk.DslDefinition.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.DslDefinition.10.0.dll)
Syntax
'Déclaration
Public Overridable Function GetSerializedModelString ( _
modelRoot As DslLibrary, _
encoding As Encoding _
) As String
public virtual string GetSerializedModelString(
DslLibrary modelRoot,
Encoding encoding
)
public:
virtual String^ GetSerializedModelString(
DslLibrary^ modelRoot,
Encoding^ encoding
)
abstract GetSerializedModelString :
modelRoot:DslLibrary *
encoding:Encoding -> string
override GetSerializedModelString :
modelRoot:DslLibrary *
encoding:Encoding -> string
public function GetSerializedModelString(
modelRoot : DslLibrary,
encoding : Encoding
) : String
Parameters
- modelRoot
Type: Microsoft.VisualStudio.Modeling.DslDefinition.DslLibrary
Root instance to be saved.
- encoding
Type: System.Text.Encoding
Encoding to use when saving the root instance.
Return Value
Type: System.String
Model in XML form
.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.