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

The IPreferences type exposes the following members.

Public methodClearValueClears value from preferences if that value exists. Does nothing if key is not present.
Public methodContainsValueCheck whether the preference contains a particular value.
Public methodGetValueReturns a preferences value given a key. Returns null if no value was set.
Public methodSavePersists any changes to site preferences.
Public methodSetValueSets a value in the store. Overwrites the existing value if there is one.