C# Класс System.Configuration.Configuration

Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание
Configuration System
Configuration System
CreateSection void
CreateSectionGroup void
FindLocationConfiguration Configuration
GetLocationSubPath string
GetParentWithFile Configuration
GetSectionGroupInstance ConfigurationSectionGroup
GetSectionInstance ConfigurationSection
GetSectionXml string
Init void
Load bool
ReadConfigFile void
ReadData void
RemoveConfigInfo void
Save void
SaveAs void
SaveData void
SetConfigurationSection void
SetSectionXml void
ThrowException void

Открытые методы

Метод Описание
GetSection ( string path ) : ConfigurationSection
GetSectionGroup ( string path ) : ConfigurationSectionGroup
Save ( ) : void
Save ( ConfigurationSaveMode mode ) : void
Save ( ConfigurationSaveMode mode, bool forceUpdateAll ) : void
SaveAs ( string filename ) : void
SaveAs ( string filename, ConfigurationSaveMode mode ) : void

Приватные методы

Метод Описание
Configuration ( Configuration parent, string locationSubPath ) : System
Configuration ( System.Configuration.InternalConfigurationSystem system, string locationSubPath ) : System
CreateSection ( System.Configuration.SectionGroupInfo group, string name, ConfigurationSection sec ) : void
CreateSectionGroup ( System.Configuration.SectionGroupInfo parentGroup, string name, ConfigurationSectionGroup sec ) : void
FindLocationConfiguration ( string relativePath, Configuration defaultConfiguration ) : Configuration
GetLocationSubPath ( ) : string
GetParentWithFile ( ) : Configuration
GetSectionGroupInstance ( System.Configuration.SectionGroupInfo group ) : ConfigurationSectionGroup
GetSectionInstance ( System.Configuration.SectionInfo config, bool createDefaultInstance ) : ConfigurationSection
GetSectionXml ( System.Configuration.SectionInfo config ) : string
Init ( IConfigSystem system, string configPath, Configuration parent ) : void
Load ( ) : bool
ReadConfigFile ( System.IO.XmlReader reader, string fileName ) : void
ReadData ( System.IO.XmlReader reader, bool allowOverride ) : void
RemoveConfigInfo ( System.Configuration.ConfigInfo config ) : void
Save ( Stream stream, ConfigurationSaveMode mode, bool forceUpdateAll ) : void
SaveAs ( string filename, ConfigurationSaveMode mode, bool forceUpdateAll ) : void
SaveData ( XmlTextWriter tw, ConfigurationSaveMode mode, bool forceUpdateAll ) : void
SetConfigurationSection ( System.Configuration.SectionInfo config, ConfigurationSection sec ) : void
SetSectionXml ( System.Configuration.SectionInfo config, string data ) : void
ThrowException ( string text, System.IO.XmlReader reader ) : void

Описание методов

GetSection() публичный Метод

public GetSection ( string path ) : ConfigurationSection
path string
Результат ConfigurationSection

GetSectionGroup() публичный Метод

public GetSectionGroup ( string path ) : ConfigurationSectionGroup
path string
Результат ConfigurationSectionGroup

Save() публичный Метод

public Save ( ) : void
Результат void

Save() публичный Метод

public Save ( ConfigurationSaveMode mode ) : void
mode ConfigurationSaveMode
Результат void

Save() публичный Метод

public Save ( ConfigurationSaveMode mode, bool forceUpdateAll ) : void
mode ConfigurationSaveMode
forceUpdateAll bool
Результат void

SaveAs() публичный Метод

public SaveAs ( string filename ) : void
filename string
Результат void

SaveAs() публичный Метод

public SaveAs ( string filename, ConfigurationSaveMode mode ) : void
filename string
mode ConfigurationSaveMode
Результат void