PreferencesStore Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Provides a container to save and load user preferences.
public ref class PreferencesStore sealed
public sealed class PreferencesStore
type PreferencesStore = class
Public NotInheritable Class PreferencesStore
- Inheritance
-
PreferencesStore
Remarks
The preferences store is implemented as a specialized case-sensitive dictionary that stores name/value pairs.
Properties
IsEmpty |
Gets a value indicating whether the preference store is empty. |
Methods
ContainsValue(String) |
Gets a value indicating whether the specified name exists in the preference store. |
GetValue(String, Boolean) |
Gets the value portion of the specified name/value pair from the preference store, using the specified default Boolean value. |
GetValue(String, Int32) |
Gets the value portion of the specified name/value pair from the preference store, using the specified default integer value. |
GetValue(String, String) |
Gets the value portion of the specified name/value pair from the preference store, using the specified default string value. |
Reset() |
Deletes the preference store. |
ResetValue(String) |
Removes the name/value pair from the preference store. |
SetValue(String, Boolean, Boolean) |
Removes, adds, or replaces an item in the preference store, using the specified Boolean values. |
SetValue(String, Int32, Int32) |
Removes, adds, or replaces an item in the preference store, using the specified integer values. |
SetValue(String, String, String) |
Removes, adds, or replaces an item in the preference store, using the specified string values. |