C# Class Elmah.ErrorXml

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

Méthodes publiques

Méthode 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

Méthode 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 méthode

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

DecodeString() public static méthode

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

Encode() public static méthode

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

EncodeString() public static méthode

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