C# 클래스 NSoft.NFramework.Nini.Config.XmlConfigSource

상속: ConfigSourceBase
파일 보기 프로젝트 열기: debop/NFramework 1 사용 예제들

공개 메소드들

메소드 설명
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
XmlConfigSource ( ) : System
XmlConfigSource ( XmlReader reader ) : System
XmlConfigSource ( string path ) : System

비공개 메소드들

메소드 설명
CreateKey ( XmlNode sectionNode, string key, string value ) : void

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

GetKeyByName ( XmlNode sectionNode, string name ) : XmlNode

Returns a key node by name.

GetSectionByName ( string name ) : XmlNode

Returns a section node by name.

IsSavable ( ) : bool

Returns true if this instance is savable.

LoadKeys ( XmlNode node, ConfigBase config ) : void

Loads all keys for a config.

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.

메소드 상세

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

XmlConfigSource() 공개 메소드

public XmlConfigSource ( ) : System
리턴 System

XmlConfigSource() 공개 메소드

public XmlConfigSource ( XmlReader reader ) : System
reader XmlReader
리턴 System

XmlConfigSource() 공개 메소드

public XmlConfigSource ( string path ) : System
path string
리턴 System