Class
PListRoot

Represents a PList File

Definition

Namespace:CE.iPhone.PList

Assembly:ArtOfTest.WebAii.dll

Syntax:

cs-api-definition
public class PListRoot : IXmlSerializable

Inheritance: objectPListRoot

Implements: IXmlSerializable

Constructors

PListRoot()

Declaration

cs-api-definition
public PListRoot()

Properties

Format

Gets or sets a value indicating whether this PListRoot is stored in binary format.

Declaration

cs-api-definition
public PListFormat Format { get; set; }

Property Value

PListFormat

true if stored in binary format; otherwise, false.

Root

Gets or sets the root PList-Element.

Declaration

cs-api-definition
public IPListElement Root { get; set; }

Property Value

IPListElement

The root PList-Element.

Methods

GetSchema()

This method is reserved and should not be used. When implementing the IXmlSerializable interface, you should return null (Nothing in Visual Basic) from this method, and instead, if specifying a custom schema is required, apply the XmlSchemaProviderAttribute to the class.

Declaration

cs-api-definition
public XmlSchema GetSchema()

Returns

XmlSchema

An XmlSchema that describes the XML representation of the object that is produced by the WriteXml(XmlWriter) method and consumed by the ReadXml(XmlReader) method.

Implements IXmlSerializable.GetSchema()

Load(Stream)

Loads the PList from specified stream.

Declaration

cs-api-definition
public static PListRoot Load(Stream stream)

Parameters

stream

Stream

The stream containing the PList.

Returns

PListRoot

A PListRoot object loaded from the stream

Load(string)

Loads the PList from specified file.

Declaration

cs-api-definition
public static PListRoot Load(string fileName)

Parameters

fileName

string

The path of the PList.

Returns

PListRoot

A PListRoot object loaded from the file

ReadXml(XmlReader)

Generates an object from its XML representation.

Declaration

cs-api-definition
public void ReadXml(XmlReader reader)

Parameters

reader

XmlReader

The XmlReader stream from which the object is deserialized.

Implements IXmlSerializable.ReadXml(XmlReader)

Save(Stream)

Saves the PList to the specified stream.

Declaration

cs-api-definition
public void Save(Stream stream)

Parameters

stream

Stream

The stream in which the PList is saves.

Save(Stream, PListFormat)

Saves the PList to the specified stream.

Declaration

cs-api-definition
public void Save(Stream stream, PListFormat format)

Parameters

stream

Stream

The stream in which the PList is saves.

format

PListFormat

The format of the PList (Binary/Xml).

Save(string)

Saves the PList to the specified path.

Declaration

cs-api-definition
public void Save(string fileName)

Parameters

fileName

string

The path of the PList.

Save(string, PListFormat)

Saves the PList to the specified path.

Declaration

cs-api-definition
public void Save(string fileName, PListFormat format)

Parameters

fileName

string

The path of the PList.

format

PListFormat

The format of the PList (Binary/Xml).

WriteXml(XmlWriter)

Converts an object into its XML representation.

Declaration

cs-api-definition
public void WriteXml(XmlWriter writer)

Parameters

writer

XmlWriter

The XmlWriter stream to which the object is serialized.

Implements IXmlSerializable.WriteXml(XmlWriter)