Sdílet prostřednictvím


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
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.

Top

See Also

Reference

Microsoft.WebMatrix.Extensibility Namespace