Share via


IPreferences 介面

適用於版本2

代表用於與每個網站喜好設定互動的介面。

命名空間:  Microsoft.WebMatrix.Extensibility
組件:  Microsoft.WebMatrix.Extensibility (在 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

IPreferences 型別公開下列成員。

方法

  名稱 說明
公用方法 ClearValue 清除喜好設定中該值是否存在的值。如果索引鍵不存在,則不會執行任何動作。
公用方法 ContainsValue 檢查喜好設定是否包含特定值。
公用方法 GetValue 傳回已提供索引鍵的喜好設定值。如果未設定值,則傳回 null。
公用方法 Save 保存網站喜好設定的任何變更。
公用方法 SetValue 設定存放區中的值。如果值已存在,則覆寫現有值。

上層

請參閱

參考

Microsoft.WebMatrix.Extensibility 命名空間