C# Class NRack.Base.Config.ConfigurationElementBase

Inheritance: System.Configuration.ConfigurationElement
Afficher le fichier Open project: kerryjiang/NRack

Private Properties

Свойство Type Description

Méthodes publiques

Méthode Description
ConfigurationElementBase ( ) : System

Initializes a new instance of the ConfigurationElementBase class.

ConfigurationElementBase ( bool nameRequired ) : System

Initializes a new instance of the ConfigurationElementBase class.

Méthodes protégées

Méthode Description
DeserializeElement ( XmlReader reader, bool serializeCollectionKey ) : void

Reads XML from the configuration file.

OnDeserializeUnrecognizedAttribute ( string name, string value ) : bool

Gets a value indicating whether an unknown attribute is encountered during deserialization.

OnDeserializeUnrecognizedElement ( string elementName, System reader ) : bool

Gets a value indicating whether an unknown element is encountered during deserialization.

Method Details

ConfigurationElementBase() public méthode

Initializes a new instance of the ConfigurationElementBase class.
public ConfigurationElementBase ( ) : System
Résultat System

ConfigurationElementBase() public méthode

Initializes a new instance of the ConfigurationElementBase class.
public ConfigurationElementBase ( bool nameRequired ) : System
nameRequired bool if set to true [name required].
Résultat System

DeserializeElement() protected méthode

Reads XML from the configuration file.
The element to read is locked.- or -An attribute of the current node is not recognized.- or -The lock status of the current node cannot be determined.
protected DeserializeElement ( XmlReader reader, bool serializeCollectionKey ) : void
reader System.Xml.XmlReader The that reads from the configuration file.
serializeCollectionKey bool true to serialize only the collection key properties; otherwise, false.
Résultat void

OnDeserializeUnrecognizedAttribute() protected méthode

Gets a value indicating whether an unknown attribute is encountered during deserialization.
protected OnDeserializeUnrecognizedAttribute ( string name, string value ) : bool
name string The name of the unrecognized attribute.
value string The value of the unrecognized attribute.
Résultat bool

OnDeserializeUnrecognizedElement() protected méthode

Gets a value indicating whether an unknown element is encountered during deserialization.
The element identified by is locked.- or -One or more of the element's attributes is locked.- or - is unrecognized, or the element has an unrecognized attribute.- or -The element has a Boolean attribute with an invalid value.- or -An attempt was made to deserialize a property more than once.- or -An attempt was made to deserialize a property that is not a valid member of the element.- or -The element cannot contain a CDATA or text element.
protected OnDeserializeUnrecognizedElement ( string elementName, System reader ) : bool
elementName string The name of the unknown subelement.
reader System The being used for deserialization.
Résultat bool