PocketPlanner Programmer's Guide

Item.SaveTo Method (XmlWriter, SerializationContext)

See Also

Saves the item data to an XML document.

 Since version 4.4, this method is considered obsolete. Instead, use the SaveTo method.

Namespace: MindFusion.Scheduling
Assembly: PocketPlanner

 Syntax

C#

public virtual void SaveTo (
    XmlWriter writer,
    SerializationContext context
)

Visual Basic

Public Overridable Sub SaveTo ( _
    writer As XmlWriter, _
    context As SerializationContext _
)

 Parameters

writer
Allows adding data to the XML document.
context
The context object contains the current revision number of the schedule file format.

 Remarks

The writer parameter wraps an XML document to which the item is being serialized. If you override this method in your own item class, you must also override LoadFrom, so that each element written by SaveTo method is read by LoadFrom.

 See Also