C# Class System.Configuration.BaseConfigurationRecord

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

Protected Properties

Property Type Description
_children Hashtable
_configName string
_configPath string
_configRoot InternalConfigRoot
_factoryRecords Hashtable
_flags SafeBitVector32
_locationSections ArrayList
_locationSubPath string
_parent BaseConfigurationRecord
_sectionRecords Hashtable

Private Properties

Property Type Description
AddImplicitSections void
AllowDefinitionToEnum ConfigurationAllowDefinition
AllowExeDefinitionToEnum ConfigurationAllowExeDefinition
BaseConfigurationRecord System.Configuration.Internal
CheckPermissionAllowed void
CloseRecursive void
CombineConfigKey string
DecryptConfigSection ConfigXmlReader
EnsureLocationSections ArrayList
EnsureSectionRecordImpl SectionRecord
Evaluate bool
EvaluateOne object
FindAndEnsureFactoryRecord FactoryRecord
FindChangedConfigurationStream string
FindFactoryRecord FactoryRecord
FindFactoryRecord FactoryRecord
FindSection ConfigXmlReader
FindSectionRecursive ConfigXmlReader
GetFactoryRecord FactoryRecord
GetProtectionProviderFromName ProtectedConfigurationProvider
GetRestrictedPermissions PermissionSet
GetSection object
GetSectionRecursive void
HasStreamChanged bool
Init void
InitConfigFromFile void
InitProtectedConfigurationSection void
IsDefinitionAllowed bool
IsImplicitSection bool
IsParentCausingLock bool
IsReservedAttributeName bool
IsRootDeclaration bool
LoadConfigSource ConfigXmlReader
NormalizeConfigSource string
NormalizeLocationSubPath string
OnStreamChanged void
RefreshFactoryRecord void
ResolveLocationSections void
ScanFactories Hashtable
ScanFactoriesRecursive void
ScanLocationSection void
ScanSections void
ScanSectionsRecursive void
ShouldPrefetchRawXml bool
ShouldSkipDueToInheritInChildApplications bool
SplitConfigKey void
ThrowIfParseErrors void
ValidateProtectionProviderAttribute string
ValidateUniqueConfigSource void
VerifyDefinitionAllowed void
hlAddChild void
hlClearResultRecursive void
hlGetChild BaseConfigurationRecord
hlNeedsChildFor bool
hlRemoveChild void

Public Methods

Method Description
GetLkgSection ( string configKey ) : object
GetSection ( string configKey ) : object
RefreshSection ( string configKey ) : void
Remove ( ) : void
ThrowIfInitErrors ( ) : void

Protected Methods

Method Description
AddLocation ( string LocationSubPath ) : void
CallCreateSection ( bool inputIsTrusted, FactoryRecord factoryRecord, SectionRecord sectionRecord, object parentConfig, ConfigXmlReader reader, string filename, int line ) : object
CallHostDecryptSection ( string encryptedXml, ProtectedConfigurationProvider protectionProvider, ProtectedConfigurationSection protectedConfig ) : string
CreateSection ( bool inputIsTrusted, FactoryRecord factoryRecord, SectionRecord sectionRecord, object parentConfig, ConfigXmlReader reader ) : object
CreateSectionDefault ( string configKey, bool getRuntimeObject, FactoryRecord factoryRecord, SectionRecord sectionRecord, object &result, object &resultRuntimeObject ) : void
CreateSectionFactory ( FactoryRecord factoryRecord ) : object
EnsureFactories ( ) : Hashtable
EnsureSectionRecord ( string configKey, bool permitErrors ) : SectionRecord
EnsureSectionRecordUnsafe ( string configKey, bool permitErrors ) : SectionRecord
GetRuntimeObject ( object result ) : object
GetSectionRecord ( string configKey, bool permitErrors ) : SectionRecord
GetSectionXmlReader ( string keys, SectionInput input ) : ConfigXmlReader
Impersonate ( ) : IDisposable
IsSectionLocked ( string configKey ) : bool
MonitorStream ( string configKey, string configSource, string streamname ) : object
UseParentResult ( string configKey, object parentResult, SectionRecord sectionRecord ) : object
ValidateUniqueChildConfigSource ( string configKey, string configSourceStreamName, string configSourceArg, IConfigErrorInfo errorInfo ) : void
VerifySectionName ( string name, IConfigErrorInfo errorInfo, bool allowImplicit ) : void
VerifySectionName ( string name, XmlUtil xmlUtil, ExceptionAction action, bool allowImplicit ) : void
VerifySectionUnlocked ( string configKey, IConfigErrorInfo configErrorInfo ) : void

Private Methods

Method Description
AddImplicitSections ( Hashtable factoryList ) : void
AllowDefinitionToEnum ( string allowDefinition, XmlUtil xmlUtil ) : ConfigurationAllowDefinition
AllowExeDefinitionToEnum ( string allowExeDefinition, XmlUtil xmlUtil ) : ConfigurationAllowExeDefinition
BaseConfigurationRecord ( ) : System.Configuration.Internal
CheckPermissionAllowed ( string configKey, bool requirePermission, bool isTrustedWithoutAptca ) : void
CloseRecursive ( ) : void
CombineConfigKey ( string parentConfigKey, string tagName ) : string
DecryptConfigSection ( ConfigXmlReader reader, ProtectedConfigurationProvider protectionProvider ) : ConfigXmlReader
EnsureLocationSections ( ) : ArrayList
EnsureSectionRecordImpl ( string configKey, bool permitErrors, bool checkIfLocked ) : SectionRecord
Evaluate ( FactoryRecord factoryRecord, SectionRecord sectionRecord, object parentResult, bool getLkg, bool getRuntimeObject, object &result, object &resultRuntimeObject ) : bool
EvaluateOne ( string keys, SectionInput input, bool isTrusted, FactoryRecord factoryRecord, SectionRecord sectionRecord, object parentResult ) : object
FindAndEnsureFactoryRecord ( string configKey, bool &isRootDeclaredHere ) : FactoryRecord
FindChangedConfigurationStream ( ) : string
FindFactoryRecord ( string configKey, bool permitErrors ) : FactoryRecord
FindFactoryRecord ( string configKey, bool permitErrors, BaseConfigurationRecord &configRecord ) : FactoryRecord
FindSection ( string keys, SectionXmlInfo sectionXmlInfo, int &lineNumber ) : ConfigXmlReader
FindSectionRecursive ( string keys, int iKey, XmlUtil xmlUtil, int &lineNumber ) : ConfigXmlReader
GetFactoryRecord ( string configKey, bool permitErrors ) : FactoryRecord
GetProtectionProviderFromName ( string providerName, bool throwIfNotFound ) : ProtectedConfigurationProvider
GetRestrictedPermissions ( ) : PermissionSet
GetSection ( string configKey, bool getLkg, bool checkPermission ) : object
GetSectionRecursive ( string configKey, bool getLkg, bool checkPermission, bool getRuntimeObject, bool requestIsHere, object &result, object &resultRuntimeObject ) : void
HasStreamChanged ( string streamname, object lastVersion ) : bool
Init ( IInternalConfigRoot configRoot, BaseConfigurationRecord parent, string configPath, string locationSubPath ) : void
InitConfigFromFile ( ) : void
InitProtectedConfigurationSection ( ) : void
IsDefinitionAllowed ( ConfigurationAllowDefinition allowDefinition, ConfigurationAllowExeDefinition allowExeDefinition ) : bool
IsImplicitSection ( string configKey ) : bool
IsParentCausingLock ( string configKey ) : bool
IsReservedAttributeName ( string name ) : bool
IsRootDeclaration ( string configKey, bool implicitIsRooted ) : bool
LoadConfigSource ( string name, SectionXmlInfo sectionXmlInfo ) : ConfigXmlReader
NormalizeConfigSource ( string configSource, IConfigErrorInfo errorInfo ) : string
NormalizeLocationSubPath ( string subPath, IConfigErrorInfo errorInfo ) : string
OnStreamChanged ( string streamname ) : void
RefreshFactoryRecord ( string configKey ) : void
ResolveLocationSections ( ) : void
ScanFactories ( XmlUtil xmlUtil ) : Hashtable
ScanFactoriesRecursive ( XmlUtil xmlUtil, string parentConfigKey, Hashtable factoryList ) : void
ScanLocationSection ( XmlUtil xmlUtil ) : void
ScanSections ( XmlUtil xmlUtil ) : void
ScanSectionsRecursive ( XmlUtil xmlUtil, string parentConfigKey, bool inLocation, string locationSubPath, bool lockChildren, bool skipInChildApps ) : void
ShouldPrefetchRawXml ( FactoryRecord factoryRecord ) : bool
ShouldSkipDueToInheritInChildApplications ( bool skipInChildApps ) : bool
SplitConfigKey ( string configKey, string &group, string &name ) : void
ThrowIfParseErrors ( ConfigurationSchemaErrors schemaErrors ) : void
ValidateProtectionProviderAttribute ( string protectionProvider, IConfigErrorInfo errorInfo ) : string
ValidateUniqueConfigSource ( string configKey, string configSourceStreamName, string configSourceArg, IConfigErrorInfo errorInfo ) : void
VerifyDefinitionAllowed ( FactoryRecord factoryRecord, string configPath, IConfigErrorInfo errorInfo ) : void
hlAddChild ( string configName, BaseConfigurationRecord child ) : void
hlClearResultRecursive ( string configKey, bool forceEvaluatation ) : void
hlGetChild ( string configName ) : BaseConfigurationRecord
hlNeedsChildFor ( string configName ) : bool
hlRemoveChild ( string configName ) : void

Method Details

AddLocation() protected method

protected AddLocation ( string LocationSubPath ) : void
LocationSubPath string
return void

CallCreateSection() protected method

protected CallCreateSection ( bool inputIsTrusted, FactoryRecord factoryRecord, SectionRecord sectionRecord, object parentConfig, ConfigXmlReader reader, string filename, int line ) : object
inputIsTrusted bool
factoryRecord FactoryRecord
sectionRecord SectionRecord
parentConfig object
reader ConfigXmlReader
filename string
line int
return object

CallHostDecryptSection() protected method

protected CallHostDecryptSection ( string encryptedXml, ProtectedConfigurationProvider protectionProvider, ProtectedConfigurationSection protectedConfig ) : string
encryptedXml string
protectionProvider ProtectedConfigurationProvider
protectedConfig ProtectedConfigurationSection
return string

CreateSection() protected abstract method

protected abstract CreateSection ( bool inputIsTrusted, FactoryRecord factoryRecord, SectionRecord sectionRecord, object parentConfig, ConfigXmlReader reader ) : object
inputIsTrusted bool
factoryRecord FactoryRecord
sectionRecord SectionRecord
parentConfig object
reader ConfigXmlReader
return object

CreateSectionDefault() protected method

protected CreateSectionDefault ( string configKey, bool getRuntimeObject, FactoryRecord factoryRecord, SectionRecord sectionRecord, object &result, object &resultRuntimeObject ) : void
configKey string
getRuntimeObject bool
factoryRecord FactoryRecord
sectionRecord SectionRecord
result object
resultRuntimeObject object
return void

CreateSectionFactory() protected abstract method

protected abstract CreateSectionFactory ( FactoryRecord factoryRecord ) : object
factoryRecord FactoryRecord
return object

EnsureFactories() protected method

protected EnsureFactories ( ) : Hashtable
return Hashtable

EnsureSectionRecord() protected method

protected EnsureSectionRecord ( string configKey, bool permitErrors ) : SectionRecord
configKey string
permitErrors bool
return SectionRecord

EnsureSectionRecordUnsafe() protected method

protected EnsureSectionRecordUnsafe ( string configKey, bool permitErrors ) : SectionRecord
configKey string
permitErrors bool
return SectionRecord

GetLkgSection() public method

public GetLkgSection ( string configKey ) : object
configKey string
return object

GetRuntimeObject() protected abstract method

protected abstract GetRuntimeObject ( object result ) : object
result object
return object

GetSection() public method

public GetSection ( string configKey ) : object
configKey string
return object

GetSectionRecord() protected method

protected GetSectionRecord ( string configKey, bool permitErrors ) : SectionRecord
configKey string
permitErrors bool
return SectionRecord

GetSectionXmlReader() protected method

protected GetSectionXmlReader ( string keys, SectionInput input ) : ConfigXmlReader
keys string
input SectionInput
return ConfigXmlReader

Impersonate() protected method

protected Impersonate ( ) : IDisposable
return IDisposable

IsSectionLocked() protected method

protected IsSectionLocked ( string configKey ) : bool
configKey string
return bool

MonitorStream() protected method

protected MonitorStream ( string configKey, string configSource, string streamname ) : object
configKey string
configSource string
streamname string
return object

RefreshSection() public method

public RefreshSection ( string configKey ) : void
configKey string
return void

Remove() public method

public Remove ( ) : void
return void

ThrowIfInitErrors() public method

public ThrowIfInitErrors ( ) : void
return void

UseParentResult() protected abstract method

protected abstract UseParentResult ( string configKey, object parentResult, SectionRecord sectionRecord ) : object
configKey string
parentResult object
sectionRecord SectionRecord
return object

ValidateUniqueChildConfigSource() protected method

protected ValidateUniqueChildConfigSource ( string configKey, string configSourceStreamName, string configSourceArg, IConfigErrorInfo errorInfo ) : void
configKey string
configSourceStreamName string
configSourceArg string
errorInfo IConfigErrorInfo
return void

VerifySectionName() static protected method

static protected VerifySectionName ( string name, IConfigErrorInfo errorInfo, bool allowImplicit ) : void
name string
errorInfo IConfigErrorInfo
allowImplicit bool
return void

VerifySectionName() static protected method

static protected VerifySectionName ( string name, XmlUtil xmlUtil, ExceptionAction action, bool allowImplicit ) : void
name string
xmlUtil XmlUtil
action ExceptionAction
allowImplicit bool
return void

VerifySectionUnlocked() protected method

protected VerifySectionUnlocked ( string configKey, IConfigErrorInfo configErrorInfo ) : void
configKey string
configErrorInfo IConfigErrorInfo
return void

Property Details

_children protected property

protected Hashtable _children
return Hashtable

_configName protected property

protected string _configName
return string

_configPath protected property

protected string _configPath
return string

_configRoot protected property

protected InternalConfigRoot _configRoot
return InternalConfigRoot

_factoryRecords protected property

protected Hashtable _factoryRecords
return Hashtable

_flags protected property

protected SafeBitVector32 _flags
return SafeBitVector32

_locationSections protected property

protected ArrayList _locationSections
return ArrayList

_locationSubPath protected property

protected string _locationSubPath
return string

_parent protected property

protected BaseConfigurationRecord _parent
return BaseConfigurationRecord

_sectionRecords protected property

protected Hashtable _sectionRecords
return Hashtable