Méthode | Description | |
---|---|---|
Clone ( ) : |
Creates a deep copy of this Config instance.
|
|
Equals ( |
||
Equals ( object obj ) : bool | ||
GetHashCode ( ) : int | ||
GetOption ( string key ) : string |
Retrieves the string representation of an option identified by a key.
|
|
ResetOption ( string key ) : void |
Resets an option identified by a key to its default value.
|
|
Save ( ) : void |
Saves the settings to an INI file in the default location in the user profile. This method performs an atomic write operation when possible. |
|
Save ( [ path ) : void |
Saves the settings to an INI file. This method performs an atomic write operation when possible. |
|
SetOption ( string key, string value ) : void |
Sets an option identified by a key.
|
|
ToString ( ) : string |
Returns the keys and values of all contained setings.
|
Méthode | Description | |
---|---|---|
ICloneable ( ) : object | ||
Load ( ) : |
||
Load ( [ path ) : |
||
ReadFromAppSettings ( ) : void |
Reads settings from ConfigurationManager.AppSettings and transfers them to properties.
|
|
ReadFromIniFile ( [ path ) : void |
Reads settings from an INI file on the disk and transfers them to properties.
|
|
ReadFromIniFiles ( ) : void |
Reads settings from INI files on the disk and transfers them to properties.
|
|
ReadFromRegistry ( ) : void |
Reads settings from Windows policy registry keys and transfers them to properties.
|
|
ReadFromRegistry ( [ registryKey ) : void |
Reads settings from a Windows registry key and transfers them to properties.
|
|
TransferToIni ( ) : void |
Transfers settings from properties to _iniData.
|
public GetOption ( string key ) : string | ||
key | string | The key of the option to retrieve. |
Résultat | string |
public ResetOption ( string key ) : void | ||
key | string | The key of the option to reset. |
Résultat | void |
public SetOption ( string key, string value ) : void | ||
key | string | The key of the option to set. |
value | string | A string representation of the option. |
Résultat | void |