C# Class Elmah.ErrorXml

Responsible for encoding and decoding the XML representation of an Error object.
Mostra file Open project: elmah/Elmah Class Usage Examples

Public Methods

Method Description
Decode ( XmlReader reader ) : Error

Decodes an Error object from its XML representation.

DecodeString ( string xml ) : Error

Decodes an Error object from its default XML representation.

Encode ( Error error, XmlWriter writer ) : void

Encodes the XML representation of an Error object.

EncodeString ( Error error ) : string

Encodes the default XML representation of an Error object to a string.

Private Methods

Method Description
Encode ( System.Collections.Specialized.NameValueCollection collection, XmlWriter writer ) : void

Encodes an XML representation for a NameValueCollection object.

ReadInnerXml ( XmlReader reader, Error error ) : void

Reads the error data in child nodes.

ReadXmlAttributes ( XmlReader reader, Error error ) : void

Reads the error data in XML attributes.

UpcodeTo ( XmlReader reader, System.Collections.Specialized.NameValueCollection collection ) : void

Updates an existing NameValueCollection object from its XML representation.

WriteCollection ( XmlWriter writer, string name, System.Collections.Specialized.NameValueCollection collection ) : void
WriteInnerXml ( Error error, XmlWriter writer ) : void

Writes the error data that belongs in child nodes.

WriteXmlAttribute ( XmlWriter writer, string name, string value ) : void
WriteXmlAttributes ( Error error, XmlWriter writer ) : void

Writes the error data that belongs in XML attributes.

Method Details

Decode() public static method

Decodes an Error object from its XML representation.
public static Decode ( XmlReader reader ) : Error
reader XmlReader
return Error

DecodeString() public static method

Decodes an Error object from its default XML representation.
public static DecodeString ( string xml ) : Error
xml string
return Error

Encode() public static method

Encodes the XML representation of an Error object.
public static Encode ( Error error, XmlWriter writer ) : void
error Error
writer System.Xml.XmlWriter
return void

EncodeString() public static method

Encodes the default XML representation of an Error object to a string.
public static EncodeString ( Error error ) : string
error Error
return string