IPreferences Interface
Applies to v2.
Represents the interface for interacting with per-site preferences.
Namespace: Microsoft.WebMatrix.Extensibility
Assembly: Microsoft.WebMatrix.Extensibility (in Microsoft.WebMatrix.Extensibility.dll)
Syntax
'Declaration
Public Interface IPreferences
'Usage
Dim instance As IPreferences
public interface IPreferences
public interface class IPreferences
type IPreferences = interface end
public interface IPreferences
The IPreferences type exposes the following members.
Methods
Name | Description | |
---|---|---|
ClearValue | Clears value from preferences if that value exists. Does nothing if key is not present. | |
ContainsValue | Check whether the preference contains a particular value. | |
GetValue | Returns a preferences value given a key. Returns null if no value was set. | |
Save | Persists any changes to site preferences. | |
SetValue | Sets a value in the store. Overwrites the existing value if there is one. |
Top