Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
IPreferences Interface

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.

  NameDescription
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.
Top
Show:
© 2015 Microsoft