Click or drag to resize
PreferenceBag Methods

The PreferenceBag type exposes the following members.

Methods
  NameDescription
Public methodAddWatcher
Add a watcher for changes to the specified preference or preference branch.
Public methodClose
Remove all watchers and write the registry.
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetBoolPref
Return a bool preference.
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetInt32Pref
Return an Int32 Preference.
Public methodGetPrefArray
Get a string array of the preference names
Public methodGetStringPref
Gets a preference's value as a string
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodStatic memberisValidName
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodRemovePref
Delete a Preference from the collection.
Public methodRemoveWatcher
Remove a previously attached Watcher
Public methodSetBoolPref
Update or create a Boolean preference.
Public methodSetInt32Pref
Update or create a Int32 Preference
Public methodSetStringPref
Update or create a string preference.
Public methodToString
Return a description of the contents of the preference bag
(Overrides ObjectToString.)
Public methodToString(Boolean)
Return a string-based serialization of the Preferences settings.
Top
See Also