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)


Public Interface IPreferences
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.


  Name Description
Public method ClearValue Clears value from preferences if that value exists. Does nothing if key is not present.
Public method ContainsValue Check whether the preference contains a particular value.
Public method GetValue Returns a preferences value given a key. Returns null if no value was set.
Public method Save Persists any changes to site preferences.
Public method SetValue Sets a value in the store. Overwrites the existing value if there is one.


See Also


Microsoft.WebMatrix.Extensibility Namespace