C# 클래스 Innovatian.Configuration.CommandLineConfigurationSource

상속: AbstractConfigurationSource
파일 보기 프로젝트 열기: idavis/innovatian.configuration

공개 메소드들

메소드 설명
AddSwitch ( string sectionName ) : void

Adds the switch to match against the arguments mapping each switch.

AddSwitch ( string sectionName, IEnumerable switches ) : void

Adds the switch to match against the arguments mapping each switch.

AddSwitch ( string sectionName, string longName, string shortName ) : void

Adds the switch to match against the arguments mapping the short name value to the long name (and short name) keys if possible.

CommandLineConfigurationSource ( string args ) : System

Initializes a new instance of the class.

CommandLineConfigurationSource ( string args, string sectionName ) : System

Initializes a new instance of the class.

CommandLineConfigurationSource ( string args, string sectionName, IEnumerable switches ) : System

Initializes a new instance of the class.

Exists ( string switchName ) : bool

Determins whether the specified switch name has a corresponding value in a section.

Reload ( ) : void

Reloads this instance.

Save ( ) : void

Saves this instance.

비공개 메소드들

메소드 설명
Extract ( IEnumerable args ) : void

메소드 상세

AddSwitch() 공개 메소드

Adds the switch to match against the arguments mapping each switch.
public AddSwitch ( string sectionName ) : void
sectionName string /// Name of the section to add the settings into. ///
리턴 void

AddSwitch() 공개 메소드

Adds the switch to match against the arguments mapping each switch.
public AddSwitch ( string sectionName, IEnumerable switches ) : void
sectionName string /// Name of the section to add the settings into. ///
switches IEnumerable /// The arguments switches to match against the arguments. The values /// may be accessed through these switches. ///
리턴 void

AddSwitch() 공개 메소드

Adds the switch to match against the arguments mapping the short name value to the long name (and short name) keys if possible.
public AddSwitch ( string sectionName, string longName, string shortName ) : void
sectionName string /// Name of the section to add the settings into. ///
longName string /// The long name of the switch. ///
shortName string /// The short name of the switch. This must be 1 or 2 characters in /// length. ///
리턴 void

CommandLineConfigurationSource() 공개 메소드

Initializes a new instance of the class.
public CommandLineConfigurationSource ( string args ) : System
args string /// The arguments to procces. ///
리턴 System

CommandLineConfigurationSource() 공개 메소드

Initializes a new instance of the class.
public CommandLineConfigurationSource ( string args, string sectionName ) : System
args string /// The arguments to procces. ///
sectionName string /// Name of the section to add the settings into. ///
리턴 System

CommandLineConfigurationSource() 공개 메소드

Initializes a new instance of the class.
public CommandLineConfigurationSource ( string args, string sectionName, IEnumerable switches ) : System
args string /// The arguments to procces. ///
sectionName string /// Name of the section to add the settings into. ///
switches IEnumerable /// The arguments switches to match against the arguments. The values /// may be accessed through these switches. ///
리턴 System

Exists() 공개 메소드

Determins whether the specified switch name has a corresponding value in a section.
public Exists ( string switchName ) : bool
switchName string /// Name of the switch. ///
리턴 bool

Reload() 공개 메소드

Reloads this instance.
public Reload ( ) : void
리턴 void

Save() 공개 메소드

Saves this instance.
public Save ( ) : void
리턴 void