Share via


ExternalMarkupService.Save Method

When overridden in a derived class, serializes the specified model item into well-formed markup text representing that model item.

Namespace:  Microsoft.Windows.Design.Services
Assembly:  Microsoft.Windows.Design.Interaction (in Microsoft.Windows.Design.Interaction.dll)

Syntax

'Declaration
Public MustOverride Function Save ( _
    root As ModelItem, _
    <OutAttribute> ByRef requiredAssemblies As IEnumerable(Of AssemblyName) _
) As String
public abstract string Save(
    ModelItem root,
    out IEnumerable<AssemblyName> requiredAssemblies
)
public:
virtual String^ Save(
    ModelItem^ root, 
    [OutAttribute] IEnumerable<AssemblyName^>^% requiredAssemblies
) abstract
abstract Save : 
        root:ModelItem * 
        requiredAssemblies:IEnumerable<AssemblyName> byref -> string 
public abstract function Save(
    root : ModelItem, 
    requiredAssemblies : IEnumerable<AssemblyName>
) : String

Parameters

Return Value

Type: System.String
Markup text that represents the model item.

Exceptions

Exception Condition
ArgumentNullException

root is nulla null reference (Nothing in Visual Basic).

Remarks

When the call to the Save method returns, requiredAssemblies contains the assembly references that are necessary to resolve all types in this subtree. The Load method can use this set and add what is needed to the references.

.NET Framework Security

See Also

Reference

ExternalMarkupService Class

Microsoft.Windows.Design.Services Namespace

ModelItem

Other Resources

WPF Designer Extensibility Architecture

XAML Parser Architecture