C# Class phdesign.NppToolBucket.Infrastructure.Settings

ファイルを表示 Open project: phdesign/NppToolBucket Class Usage Examples

Public Methods

Method Description
Get ( SettingsSection section, string keyName, string defaultValue ) : string
GetBool ( SettingsSection section, string keyName, bool defaultValue ) : bool
GetInt ( SettingsSection section, string keyName, int defaultValue ) : int
Save ( ) : void
Set ( SettingsSection section, string keyName, bool value ) : void
Set ( SettingsSection section, string keyName, int value ) : void
Set ( SettingsSection section, string keyName, string value ) : void
Settings ( string filePath ) : System

Private Methods

Method Description
GetKeys ( string sectionName ) : List
GetPrivateProfileString ( string lpAppName, string lpKeyName, string lpDefault, [ lpReturnedString, uint nSize, string lpFileName ) : uint
GetSections ( ) : List
GetSetting ( string sectionName, string keyName ) : Setting
GetValue ( string sectionName, string keyName ) : string
Load ( ) : void
WritePrivateProfileString ( string lpAppName, string lpKeyName, string lpString, string lpFileName ) : bool

Method Details

Get() public method

public Get ( SettingsSection section, string keyName, string defaultValue ) : string
section SettingsSection
keyName string
defaultValue string
return string

GetBool() public method

public GetBool ( SettingsSection section, string keyName, bool defaultValue ) : bool
section SettingsSection
keyName string
defaultValue bool
return bool

GetInt() public method

public GetInt ( SettingsSection section, string keyName, int defaultValue ) : int
section SettingsSection
keyName string
defaultValue int
return int

Save() public method

public Save ( ) : void
return void

Set() public method

public Set ( SettingsSection section, string keyName, bool value ) : void
section SettingsSection
keyName string
value bool
return void

Set() public method

public Set ( SettingsSection section, string keyName, int value ) : void
section SettingsSection
keyName string
value int
return void

Set() public method

public Set ( SettingsSection section, string keyName, string value ) : void
section SettingsSection
keyName string
value string
return void

Settings() public method

public Settings ( string filePath ) : System
filePath string
return System