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
- root
Type: Microsoft.Windows.Design.Model.ModelItem
The model item representing the root of the document.
- requiredAssemblies
Type: System.Collections.Generic.IEnumerable<AssemblyName>%
Assembly references needed for this subtree.
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
- 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.
See Also
Reference
Microsoft.Windows.Design.Services Namespace