C# Class System.Configuration.MgmtConfigurationRecord

Inheritance: BaseConfigurationRecord
Datei anzeigen Open project: gbarnett/shared-source-cli-2.0 Class Usage Examples

Private Properties

Property Type Description
AddConfigurationSection void
AddConfigurationSectionGroup void
AppendAttribute void
AreDeclarationAttributesModified bool
AreLocationAttributesModified bool
AreSectionAttributesModified bool
BoolToString string
ChangeConfigSource void
CheckPreamble void
CopyConfig void
CopyConfigDeclarationsRecursive bool
CopyConfigDefinitionsRecursive bool
CopyConfigSource void
Create MgmtConfigurationRecord
CreateNewConfig void
CreateNewConfigSource void
CreateSectionGroupFactory System.Reflection.ConstructorInfo
EnsureSectionGroupFactory System.Reflection.ConstructorInfo
ExeDefinitionToString string
FindAndCloneImmediateParentSection ConfigurationSection
FindImmediateParentSection ConfigurationSection
GetAllFactories System.Collections.Hashtable
GetConfigDeclarationUpdates SectionUpdates
GetConfigDefinitionUpdates void
GetConfigSection ConfigurationSection
GetDescendentSectionFactories System.Collections.ArrayList
GetDescendentSectionGroupFactories System.Collections.ArrayList
GetLocationCollection ConfigurationLocationCollection
GetRawXml string
GetSectionGroup ConfigurationSectionGroup
GetUpdatedSectionDeclarationXml string
GetUpdatedSectionGroupDeclarationXml string
Init void
InitStreamInfoUpdates void
IsConfigSectionMoved bool
IsStreamUsed bool
LookupSectionGroup ConfigurationSectionGroup
MgmtConfigurationRecord System.CodeDom.Compiler
RemoveConfigurationSection void
RemoveConfigurationSectionGroup void
RemoveLocationWriteRequirement void
RevertToParent void
SaveAs void
SaveConfigSource void
SetRawXml void
UpdateIndent int
UpdateRecords void
ValidateSectionXml void
WriteEmptyElement string
WriteNewConfigDeclarations void
WriteNewConfigDefinitions void
WriteNewConfigDefinitionsRecursive bool
WriteSectionUpdate void
WriteUnwrittenConfigDeclarations void
WriteUnwrittenConfigDeclarationsRecursive void

Protected Methods

Method Description
AddLocation ( string locationSubPath ) : void
CreateSection ( bool inputIsTrusted, FactoryRecord factoryRecord, SectionRecord sectionRecord, object parentConfig, ConfigXmlReader reader ) : object
CreateSectionFactory ( FactoryRecord factoryRecord ) : object
GetRuntimeObject ( object result ) : object
UseParentResult ( string configKey, object parentResult, SectionRecord sectionRecord ) : object

Private Methods

Method Description
AddConfigurationSection ( string group, string name, ConfigurationSection configSection ) : void
AddConfigurationSectionGroup ( string group, string name, ConfigurationSectionGroup configSectionGroup ) : void
AppendAttribute ( StringBuilder sb, string key, string value ) : void
AreDeclarationAttributesModified ( FactoryRecord factoryRecord, ConfigurationSection configSection ) : bool
AreLocationAttributesModified ( SectionRecord sectionRecord, ConfigurationSection configSection ) : bool
AreSectionAttributesModified ( SectionRecord sectionRecord, ConfigurationSection configSection ) : bool
BoolToString ( bool v ) : string
ChangeConfigSource ( SectionInformation sectionInformation, string oldConfigSource, string oldConfigSourceStreamName, string newConfigSource ) : void
CheckPreamble ( byte preamble, XmlUtilWriter utilWriter, byte buffer ) : void
CopyConfig ( SectionUpdates declarationUpdates, ConfigDefinitionUpdates definitionUpdates, byte buffer, string filename, NamespaceChange namespaceChange, XmlUtilWriter utilWriter ) : void
CopyConfigDeclarationsRecursive ( SectionUpdates declarationUpdates, XmlUtil xmlUtil, XmlUtilWriter utilWriter, string group, int parentLinePosition, int parentIndent ) : bool
CopyConfigDefinitionsRecursive ( ConfigDefinitionUpdates configDefinitionUpdates, XmlUtil xmlUtil, XmlUtilWriter utilWriter, bool locationPathApplies, LocationUpdates locationUpdates, SectionUpdates sectionUpdates, bool addNewSections, string group, int parentLinePosition, int parentIndent ) : bool
CopyConfigSource ( XmlUtilWriter utilWriter, string updatedXml, string configSourceStreamName, byte buffer ) : void
Create ( IInternalConfigRoot configRoot, IInternalConfigRecord parent, string configPath, string locationSubPath ) : MgmtConfigurationRecord
CreateNewConfig ( SectionUpdates declarationUpdates, ConfigDefinitionUpdates definitionUpdates, NamespaceChange namespaceChange, XmlUtilWriter utilWriter ) : void
CreateNewConfigSource ( XmlUtilWriter utilWriter, string updatedXml, int indent ) : void
CreateSectionGroupFactory ( FactoryRecord factoryRecord ) : ConstructorInfo
EnsureSectionGroupFactory ( FactoryRecord factoryRecord ) : ConstructorInfo
ExeDefinitionToString ( ConfigurationAllowExeDefinition allowDefinition ) : string
FindAndCloneImmediateParentSection ( ConfigurationSection configSection ) : ConfigurationSection
FindImmediateParentSection ( ConfigurationSection section ) : ConfigurationSection
GetAllFactories ( bool isGroup ) : Hashtable
GetConfigDeclarationUpdates ( ConfigurationSaveMode saveMode, bool forceUpdateAll ) : SectionUpdates
GetConfigDefinitionUpdates ( bool requireUpdates, ConfigurationSaveMode saveMode, bool forceSaveAll, ConfigDefinitionUpdates &definitionUpdates, ArrayList &configSourceUpdates ) : void
GetConfigSection ( string configKey ) : ConfigurationSection
GetDescendentSectionFactories ( string configKey ) : ArrayList
GetDescendentSectionGroupFactories ( string configKey ) : ArrayList
GetLocationCollection ( Configuration config ) : ConfigurationLocationCollection
GetRawXml ( string configKey ) : string
GetSectionGroup ( string configKey ) : ConfigurationSectionGroup
GetUpdatedSectionDeclarationXml ( FactoryRecord factoryRecord, ConfigurationSection configSection, ConfigurationSaveMode saveMode ) : string
GetUpdatedSectionGroupDeclarationXml ( FactoryRecord factoryRecord, ConfigurationSectionGroup configSectionGroup ) : string
Init ( IInternalConfigRoot configRoot, IInternalConfigRecord parent, string configPath, string locationSubPath ) : void
InitStreamInfoUpdates ( ) : void
IsConfigSectionMoved ( SectionRecord sectionRecord, ConfigurationSection configSection ) : bool
IsStreamUsed ( string oldStreamName ) : bool
LookupSectionGroup ( string configKey ) : ConfigurationSectionGroup
MgmtConfigurationRecord ( ) : System.CodeDom.Compiler
RemoveConfigurationSection ( string group, string name ) : void
RemoveConfigurationSectionGroup ( string group, string name ) : void
RemoveLocationWriteRequirement ( ) : void
RevertToParent ( ConfigurationSection configSection ) : void
SaveAs ( string filename, ConfigurationSaveMode saveMode, bool forceUpdateAll ) : void
SaveConfigSource ( DefinitionUpdate update ) : void
SetRawXml ( ConfigurationSection configSection, string xmlElement ) : void
UpdateIndent ( int oldIndent, XmlUtil xmlUtil, XmlUtilWriter utilWriter, int parentLinePosition ) : int
UpdateRecords ( ) : void
ValidateSectionXml ( string xmlElement, string configKey ) : void
WriteEmptyElement ( string ElementName ) : string
WriteNewConfigDeclarations ( SectionUpdates declarationUpdates, XmlUtilWriter utilWriter, int linePosition, int indent, bool skipFirstIndent ) : void
WriteNewConfigDefinitions ( ConfigDefinitionUpdates configDefinitionUpdates, XmlUtilWriter utilWriter, int linePosition, int indent ) : void
WriteNewConfigDefinitionsRecursive ( XmlUtilWriter utilWriter, SectionUpdates sectionUpdates, int linePosition, int indent, bool skipFirstIndent ) : bool
WriteSectionUpdate ( XmlUtilWriter utilWriter, DefinitionUpdate update, int linePosition, int indent, bool skipFirstIndent ) : void
WriteUnwrittenConfigDeclarations ( SectionUpdates declarationUpdates, XmlUtilWriter utilWriter, int linePosition, int indent, bool skipFirstIndent ) : void
WriteUnwrittenConfigDeclarationsRecursive ( SectionUpdates declarationUpdates, XmlUtilWriter utilWriter, int linePosition, int indent, bool skipFirstIndent ) : void

Method Details

AddLocation() protected method

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

CreateSection() protected method

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

CreateSectionFactory() protected method

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

GetRuntimeObject() protected method

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

UseParentResult() protected method

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