ChartSerializer.Load Method (XmlReader)

.NET Framework (current version)
 

Loads serialized data into the control from an object derived from the XmlReader class.

Namespace:   System.Web.UI.DataVisualization.Charting
Assembly:  System.Web.DataVisualization (in System.Web.DataVisualization.dll)

member Load : 
        reader:XmlReader -> unit

Parameters

reader
Type: System.Xml.XmlReader

An object from which to read the persisted data. The object is derived from the XmlReader class, and can be a .NET Framework object or a user-defined object.

Call this method to load serialized data into the Chart control.

When a load operation occurs, by default serializable properties are first reset to their default values before they are set to the persisted values, if saved. To change this behavior, use the IsResetWhenLoading property.

By default, all serialized chart properties will be loaded. If you set the Content, SerializableContent or NonSerializableContent properties, a specific set of properties can be loaded.

When you use this definition, the format must be XML; it can be changed with the Format property.

When you work with XML format text files, for simplicity use the Load method instead.

.NET Framework
Available since 4.0
Return to top
Show: