C# Class NRack.Base.Config.ConfigurationElementBase

Inheritance: System.Configuration.ConfigurationElement
Exibir arquivo Open project: kerryjiang/NRack

Private Properties

Property Type Description

Public Methods

Method Description
ConfigurationElementBase ( ) : System

Initializes a new instance of the ConfigurationElementBase class.

ConfigurationElementBase ( bool nameRequired ) : System

Initializes a new instance of the ConfigurationElementBase class.

Protected Methods

Method 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 method

Initializes a new instance of the ConfigurationElementBase class.
public ConfigurationElementBase ( ) : System
return System

ConfigurationElementBase() public method

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

DeserializeElement() protected method

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.
return void

OnDeserializeUnrecognizedAttribute() protected method

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.
return bool

OnDeserializeUnrecognizedElement() protected method

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.
return bool