C# Класс NSoft.NFramework.Nini.Config.DotNetConfigSource

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

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

Метод Описание
DotNetConfigSource ( ) : System
DotNetConfigSource ( XmlReader reader ) : System
DotNetConfigSource ( string sections ) : System
GetFullConfigPath ( ) : string
Load ( XmlReader reader ) : void
Load ( string path ) : void
Reload ( ) : void
Save ( ) : void
Save ( Stream stream ) : void
Save ( TextWriter writer ) : void
Save ( string path ) : void
ToString ( ) : string

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

Метод Описание
CreateKey ( XmlNode sectionNode, string key, string value ) : void

Creates a key node and adds it to the collection at the end.

GetChildElement ( XmlNode parentNode, string name ) : XmlNode

Returns the single named child element.

GetChildElement ( string name ) : XmlNode

Returns a child element from the XmlDocument.DocumentElement.

GetKey ( XmlNode sectionNode, string keyName ) : XmlNode

Gets an XML key by it's name. Returns null if it does not exist.

IsSavable ( ) : bool

Returns true if this instance is savable.

Load ( ) : void

Loads all collection classes.

LoadCollection ( string name, NameValueCollection collection ) : void

Loads a collection class.

LoadKeys ( XmlNode rootNode, ConfigBase config ) : void

Loads all keys for a config.

LoadOtherSection ( XmlNode rootNode, string nodeName ) : void

Loads special sections that are not loaded in the configSections node. This includes such sections such as appSettings.

LoadSections ( XmlNode rootNode ) : void

Loads all configuration sections.

MergeConfigsIntoDocument ( ) : void

Merges all of the configs from the config collection into the XmlDocument.

MergeDocumentIntoConfigs ( ) : void

Merges the XmlDocument into the Configs when the document is reloaded.

PerformLoad ( XmlDocument document ) : void

Loads all sections and keys.

RemoveConfigKeys ( IConfig config ) : void

Removes all XML keys that were removed as config keys.

RemoveConfigs ( ) : void

Removes all configs that are not in the newly loaded XmlDocument.

RemoveKeys ( string sectionName ) : void

Removes all XML keys that were removed as config keys.

RemoveSections ( ) : void

Removes all XML sections that were removed as configs.

SectionNode ( string name ) : XmlNode

Returns a new section node.

SetKey ( XmlNode sectionNode, string key, string value ) : void

Sets an XML key. If it does not exist then it is created.

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

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

public DotNetConfigSource ( ) : System
Результат System

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

public DotNetConfigSource ( XmlReader reader ) : System
reader XmlReader
Результат System

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

public DotNetConfigSource ( string sections ) : System
sections string
Результат System

GetFullConfigPath() публичный статический Метод

public static GetFullConfigPath ( ) : string
Результат string

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

public Load ( XmlReader reader ) : void
reader XmlReader
Результат void

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

public Load ( string path ) : void
path string
Результат void

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

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

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

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

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

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

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

public Save ( TextWriter writer ) : void
writer System.IO.TextWriter
Результат void

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

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

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

public ToString ( ) : string
Результат string