![]() |
BogaNet 1.4.0
|
Interface for preferences of the application. More...
Public Member Functions | |
| bool | Remove (string key) |
| Removes a key/value from the preferences. | |
| bool | ContainsKey (string key) |
| Checks if a given key exists in the preferences. | |
| string | GetString (string key, bool obfuscated=false) |
| Get a string for a key. | |
| bool | TryGetString (string key, out string result, bool obfuscated=false) |
| Tries to get a string for a key. | |
| T | GetObject< T > (string key, bool obfuscated=false) |
| Get an object for a key. | |
| bool | TryGetObject< T > (string key, out T result, bool obfuscated=false) |
| Tries to get an object for a key. | |
| T | GetNumber< T > (string key, bool obfuscated=false) |
| Get a number for a key. | |
| bool | TryGetNumber< T > (string key, out T result, bool obfuscated=false) |
| Tries to get a number for a key. | |
| bool | GetBool (string key, bool obfuscated=false) |
| Get a bool for a key. | |
| bool | TryGetBool (string key, out bool result, bool obfuscated=false) |
| Tries to get a bool for a key. | |
| DateTime | GetDate (string key, bool obfuscated=false, TimeZoneInfo? usedTZ=null) |
| Get a DateTime for a key. | |
| bool | TryGetDate (string key, out DateTime result, bool obfuscated=false, TimeZoneInfo? usedTZ=null) |
| Tries to get a DateTime for a key. | |
| void | Set (string key, string value, bool obfuscated=false) |
| Set a string for a key. | |
| void | Set (string key, object value, bool obfuscated=false) |
| Set an object for a key. | |
| void | Set< T > (string key, T value, bool obfuscated=false) |
| Set a number for a key. | |
| void | Set (string key, bool value, bool obfuscated=false) |
| Set a bool for a key. | |
| void | Set (string key, DateTime value, bool obfuscated=false) |
| Set a DateTime for a key. | |
Properties | |
| ByteObf | IV [set] |
| IV for the obfuscated data. | |
| bool | IsLoaded [get] |
| Are the preferences loaded? | |
| bool | IsSaved [get] |
| Are the current preferences saved? | |
| List< string > | Keys [get] |
| Current keys of the preferences. | |
| int | Count [get] |
| Current count of keys from the preferences. | |
Interface for preferences of the application.
| bool BogaNet.Prefs.IPreferences.ContainsKey | ( | string | key | ) |
Checks if a given key exists in the preferences.
| key | Key to check |
| ArgumentNullException |
Implemented in BogaNet.Prefs.Preferences.
| bool BogaNet.Prefs.IPreferences.GetBool | ( | string | key, |
| bool | obfuscated = false ) |
Get a bool for a key.
| key | Key for the bol. |
| obfuscated | Obfuscate value in the preferences (optional, default: false) |
| ArgumentNullException |
Implemented in BogaNet.Prefs.Preferences.
| DateTime BogaNet.Prefs.IPreferences.GetDate | ( | string | key, |
| bool | obfuscated = false, | ||
| TimeZoneInfo? | usedTZ = null ) |
Get a DateTime for a key.
| key | Key for the DateTime. |
| obfuscated | Obfuscate value in the preferences (optional, default: false) |
| usedTZ | Time zone of the date (optional, default: local) |
| ArgumentNullException |
Implemented in BogaNet.Prefs.Preferences.
| T BogaNet.Prefs.IPreferences.GetNumber< T > | ( | string | key, |
| bool | obfuscated = false ) |
Get a number for a key.
| key | Key for the number |
| obfuscated | Obfuscate value in the preferences (optional, default: false) |
| ArgumentNullException |
Implemented in BogaNet.Prefs.Preferences.
| T | : | INumber<T> |
| T BogaNet.Prefs.IPreferences.GetObject< T > | ( | string | key, |
| bool | obfuscated = false ) |
Get an object for a key.
| key | Key for the object |
| obfuscated | Obfuscate value in the preferences (optional, default: false) |
| ArgumentNullException |
Implemented in BogaNet.Prefs.Preferences.
| string BogaNet.Prefs.IPreferences.GetString | ( | string | key, |
| bool | obfuscated = false ) |
Get a string for a key.
| key | Key for the string |
| obfuscated | Obfuscate value in the preferences (optional, default: false) |
| ArgumentNullException |
Implemented in BogaNet.Prefs.Preferences.
| bool BogaNet.Prefs.IPreferences.Remove | ( | string | key | ) |
Removes a key/value from the preferences.
| key | Key (and value) to delete |
| ArgumentNullException |
Implemented in BogaNet.Prefs.Preferences.
| void BogaNet.Prefs.IPreferences.Set | ( | string | key, |
| bool | value, | ||
| bool | obfuscated = false ) |
Set a bool for a key.
| key | Key for the bool |
| value | Bool for the preferences |
| obfuscated | Obfuscate value in the preferences (optional, default: false) |
| ArgumentNullException |
Implemented in BogaNet.Prefs.Preferences.
| void BogaNet.Prefs.IPreferences.Set | ( | string | key, |
| DateTime | value, | ||
| bool | obfuscated = false ) |
Set a DateTime for a key.
| key | Key for the DateTime |
| value | DateTime for the preferences |
| obfuscated | Obfuscate value in the preferences (optional, default: false) |
| ArgumentNullException |
Implemented in BogaNet.Prefs.Preferences.
| void BogaNet.Prefs.IPreferences.Set | ( | string | key, |
| object | value, | ||
| bool | obfuscated = false ) |
Set an object for a key.
| key | Key for the object |
| value | Object for the preferences |
| obfuscated | Obfuscate value in the preferences (optional, default: false) |
| ArgumentNullException |
Implemented in BogaNet.Prefs.Preferences.
| void BogaNet.Prefs.IPreferences.Set | ( | string | key, |
| string | value, | ||
| bool | obfuscated = false ) |
Set a string for a key.
| key | Key for the string |
| value | String for the preferences |
| obfuscated | Obfuscate value in the preferences (optional, default: false) |
| ArgumentNullException |
Implemented in BogaNet.Prefs.Preferences.
| void BogaNet.Prefs.IPreferences.Set< T > | ( | string | key, |
| T | value, | ||
| bool | obfuscated = false ) |
Set a number for a key.
| key | Key for the number |
| value | Number for the preferences |
| obfuscated | Obfuscate value in the preferences (optional, default: false) |
| ArgumentNullException |
Implemented in BogaNet.Prefs.Preferences.
| T | : | INumber<T> |
| bool BogaNet.Prefs.IPreferences.TryGetBool | ( | string | key, |
| out bool | result, | ||
| bool | obfuscated = false ) |
Tries to get a bool for a key.
| key | Key for the bol. |
| result | out parameter for the result |
| obfuscated | Obfuscate value in the preferences (optional, default: false) |
| ArgumentNullException |
Implemented in BogaNet.Prefs.Preferences.
| bool BogaNet.Prefs.IPreferences.TryGetDate | ( | string | key, |
| out DateTime | result, | ||
| bool | obfuscated = false, | ||
| TimeZoneInfo? | usedTZ = null ) |
Tries to get a DateTime for a key.
| key | Key for the DateTime. |
| result | out parameter for the result |
| obfuscated | Obfuscate value in the preferences (optional, default: false) |
| usedTZ | Time zone of the date (optional, default: local) |
| ArgumentNullException |
Implemented in BogaNet.Prefs.Preferences.
| bool BogaNet.Prefs.IPreferences.TryGetNumber< T > | ( | string | key, |
| out T | result, | ||
| bool | obfuscated = false ) |
Tries to get a number for a key.
| key | Key for the number |
| result | out parameter for the result |
| obfuscated | Obfuscate value in the preferences (optional, default: false) |
| ArgumentNullException |
Implemented in BogaNet.Prefs.Preferences.
| T | : | INumber<T> |
| bool BogaNet.Prefs.IPreferences.TryGetObject< T > | ( | string | key, |
| out T | result, | ||
| bool | obfuscated = false ) |
Tries to get an object for a key.
| key | Key for the object |
| result | out parameter for the result |
| obfuscated | Obfuscate value in the preferences (optional, default: false) |
| ArgumentNullException |
Implemented in BogaNet.Prefs.Preferences.
| bool BogaNet.Prefs.IPreferences.TryGetString | ( | string | key, |
| out string | result, | ||
| bool | obfuscated = false ) |
Tries to get a string for a key.
| key | Key for the string |
| result | out parameter for the result |
| obfuscated | Obfuscate value in the preferences (optional, default: false) |
| ArgumentNullException |
Implemented in BogaNet.Prefs.Preferences.
|
get |
Current count of keys from the preferences.
Implemented in BogaNet.Prefs.Preferences.
|
get |
Are the preferences loaded?
Implemented in BogaNet.Prefs.Preferences.
|
get |
Are the current preferences saved?
Implemented in BogaNet.Prefs.Preferences.
|
set |
IV for the obfuscated data.
Implemented in BogaNet.Prefs.Preferences.
|
get |
Current keys of the preferences.
Implemented in BogaNet.Prefs.Preferences.