DslDefinitionModelSerializationHelperBase.GetSerializedModelString Method

Return the model in XML format

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

Syntax

'Declaration
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

  • encoding
    Type: Encoding

    Encoding to use when saving the root instance.

Return Value

Type: String
Model in XML form

.NET Framework Security

See Also

Reference

DslDefinitionModelSerializationHelperBase Class

Microsoft.VisualStudio.Modeling.DslDefinition Namespace