IProfile Methods

Methods

Clear This will clear all settings. In addition it should remove any artefacts from the computer. For example it should delete any created files, database, or registry keys. This is useful for a clean uninstall.
ContainsKey Check if the profile provider has a given key
DeleteValue Deletes a key / value pair from the profile.
GetProfile This returns a string version of all of the profile settings. If this is passed into SetProfile it will recreate the profile in its current state. This can be used during upgrades to preserve settings or to back them up.
GetValue(String) Gets the value associated with a key. Throws an exception if that key does not exist.
GetValue(String, String) Gets the value associated with a key. Returns the defaultValue if that key does not exist. This will not store that key / value pair in the profile.
Keys Returns all Keys used in the profile
SetProfile This sets and saves the profile from the rawProfile string returned from GetProfile. This can be used to restore after an install or from a backup.
Values Returns all Values within the profile
WriteValue Write a value to the profile

See Also