C# Class System.Configuration.ConfigurationElement

Show file Open project: gbarnett/shared-source-cli-2.0 Class Usage Examples

Private Properties

Property Type Description
ApplyInstanceAttributes void
ApplyValidator void
ApplyValidatorsRecursive void
AssociateContext void
CachePerTypeValidator void
CallInit void
CheckLockedElement void
CreateConfigurationPropertyFromAttributes ConfigurationProperty
CreateElement ConfigurationElement
CreatePropertyBagFromType ConfigurationPropertyCollection
DeserializePropertyValue object
Dump void
EnsureRequiredProperties void
GetErrors ConfigurationErrorsException
GetErrorsList System.Collections.ArrayList
HandleLockedAttributes void
IntersectLockCollections System.Collections.Specialized.StringCollection
IsLockAttributeName bool
MergeLocks void
ParseLockedAttributes ConfigurationLockCollection
PropertiesFromType bool
PropertyFileName string
PropertyInfoInternal PropertySourceInfo
PropertyLineNumber int
RemoveAllInheritedLocks void
ReportInvalidLock void
ResetLockLists void
SerializeLockList bool
SetLocked void
UnMergeLockList ConfigurationLockCollection
ValidateElement void

Public Methods

Method Description
Equals ( object compareTo ) : bool
GetHashCode ( ) : int
IsReadOnly ( ) : bool

Protected Methods

Method Description
ConfigurationElement ( ) : System
DeserializeElement ( XmlReader reader, bool serializeCollectionKey ) : void
Init ( ) : void
InitializeDefault ( ) : void
IsModified ( ) : bool
ListErrors ( IList errorList ) : void
OnDeserializeUnrecognizedAttribute ( String name, String value ) : bool
OnDeserializeUnrecognizedElement ( String elementName, XmlReader reader ) : bool
OnRequiredPropertyNotFound ( string name ) : object
PostDeserialize ( ) : void
PreSerialize ( XmlWriter writer ) : void
Reset ( ConfigurationElement parentElement ) : void
ResetModified ( ) : void
SerializeElement ( XmlWriter writer, bool serializeCollectionKey ) : bool
SerializeToXmlElement ( XmlWriter writer, String elementName ) : bool
SetPropertyValue ( ConfigurationProperty prop, object value, bool ignoreLocks ) : void
SetReadOnly ( ) : void
Unmerge ( ConfigurationElement sourceElement, ConfigurationElement parentElement, ConfigurationSaveMode saveMode ) : void
this ( ConfigurationProperty prop ) : Object
this ( String propertyName ) : Object

Private Methods

Method Description
ApplyInstanceAttributes ( object instance ) : void
ApplyValidator ( ConfigurationElement elem ) : void
ApplyValidatorsRecursive ( ConfigurationElement root ) : void
AssociateContext ( BaseConfigurationRecord configRecord ) : void
CachePerTypeValidator ( Type type, ConfigurationValidatorBase validator ) : void
CallInit ( ) : void
CheckLockedElement ( string elementName, XmlReader reader ) : void
CreateConfigurationPropertyFromAttributes ( PropertyInfo propertyInformation ) : ConfigurationProperty
CreateElement ( Type type ) : ConfigurationElement
CreatePropertyBagFromType ( Type type ) : ConfigurationPropertyCollection
DeserializePropertyValue ( ConfigurationProperty prop, XmlReader reader ) : object
Dump ( TextWriter tw ) : void
EnsureRequiredProperties ( bool ensureKeysOnly ) : void
GetErrors ( ) : ConfigurationErrorsException
GetErrorsList ( ) : ArrayList
HandleLockedAttributes ( ConfigurationElement source ) : void
IntersectLockCollections ( ConfigurationLockCollection Collection1, ConfigurationLockCollection Collection2 ) : StringCollection
IsLockAttributeName ( string name ) : bool
MergeLocks ( ConfigurationElement source ) : void
ParseLockedAttributes ( ConfigurationValue value, ConfigurationLockCollectionType lockType ) : ConfigurationLockCollection
PropertiesFromType ( Type type, ConfigurationPropertyCollection &result ) : bool
PropertyFileName ( string propertyName ) : string
PropertyInfoInternal ( string propertyName ) : PropertySourceInfo
PropertyLineNumber ( string propertyName ) : int
RemoveAllInheritedLocks ( ) : void
ReportInvalidLock ( string attribToLockTrim, ConfigurationLockCollectionType lockedType, ConfigurationValue value, String collectionProperties ) : void
ResetLockLists ( ConfigurationElement parentElement ) : void
SerializeLockList ( ConfigurationLockCollection list, String elementKey, XmlWriter writer ) : bool
SetLocked ( ) : void
UnMergeLockList ( ConfigurationLockCollection sourceLockList, ConfigurationLockCollection parentLockList, ConfigurationSaveMode saveMode ) : ConfigurationLockCollection
ValidateElement ( ConfigurationElement elem, ConfigurationValidatorBase propValidator, bool recursive ) : void

Method Details

ConfigurationElement() protected method

protected ConfigurationElement ( ) : System
return System

DeserializeElement() protected method

protected DeserializeElement ( XmlReader reader, bool serializeCollectionKey ) : void
reader XmlReader
serializeCollectionKey bool
return void

Equals() public method

public Equals ( object compareTo ) : bool
compareTo object
return bool

GetHashCode() public method

public GetHashCode ( ) : int
return int

Init() protected method

protected Init ( ) : void
return void

InitializeDefault() protected method

protected InitializeDefault ( ) : void
return void

IsModified() protected method

protected IsModified ( ) : bool
return bool

IsReadOnly() public method

public IsReadOnly ( ) : bool
return bool

ListErrors() protected method

protected ListErrors ( IList errorList ) : void
errorList IList
return void

OnDeserializeUnrecognizedAttribute() protected method

protected OnDeserializeUnrecognizedAttribute ( String name, String value ) : bool
name String
value String
return bool

OnDeserializeUnrecognizedElement() protected method

protected OnDeserializeUnrecognizedElement ( String elementName, XmlReader reader ) : bool
elementName String
reader XmlReader
return bool

OnRequiredPropertyNotFound() protected method

protected OnRequiredPropertyNotFound ( string name ) : object
name string
return object

PostDeserialize() protected method

protected PostDeserialize ( ) : void
return void

PreSerialize() protected method

protected PreSerialize ( XmlWriter writer ) : void
writer System.Xml.XmlWriter
return void

Reset() protected method

protected Reset ( ConfigurationElement parentElement ) : void
parentElement ConfigurationElement
return void

ResetModified() protected method

protected ResetModified ( ) : void
return void

SerializeElement() protected method

protected SerializeElement ( XmlWriter writer, bool serializeCollectionKey ) : bool
writer System.Xml.XmlWriter
serializeCollectionKey bool
return bool

SerializeToXmlElement() protected method

protected SerializeToXmlElement ( XmlWriter writer, String elementName ) : bool
writer System.Xml.XmlWriter
elementName String
return bool

SetPropertyValue() protected method

protected SetPropertyValue ( ConfigurationProperty prop, object value, bool ignoreLocks ) : void
prop ConfigurationProperty
value object
ignoreLocks bool
return void

SetReadOnly() protected method

protected SetReadOnly ( ) : void
return void

Unmerge() protected method

protected Unmerge ( ConfigurationElement sourceElement, ConfigurationElement parentElement, ConfigurationSaveMode saveMode ) : void
sourceElement ConfigurationElement
parentElement ConfigurationElement
saveMode ConfigurationSaveMode
return void

this() protected method

protected this ( ConfigurationProperty prop ) : Object
prop ConfigurationProperty
return Object

this() protected method

protected this ( String propertyName ) : Object
propertyName String
return Object