PersonalizationAdministration.ResetAllState(PersonalizationScope) 方法

定義

藉由刪除與指定範圍相關聯的所有資料列,重設基礎資料存放區中的所有個人化資料。

public:
 static int ResetAllState(System::Web::UI::WebControls::WebParts::PersonalizationScope scope);
public static int ResetAllState (System.Web.UI.WebControls.WebParts.PersonalizationScope scope);
static member ResetAllState : System.Web.UI.WebControls.WebParts.PersonalizationScope -> int
Public Shared Function ResetAllState (scope As PersonalizationScope) As Integer

參數

scope
PersonalizationScope

與要刪除之個人化資料相關聯的範圍。

傳回

已重設的項目數目。

例外狀況

scope 不是 PersonalizationScope 列舉型別的有效成員。

組態中定義的個人化提供者之提供者不是正確的型別。

在嘗試建立及初始化其中一個設定的個人化提供者的執行個體時,發生組態例外狀況。

-或-

找不到組態中定義的預設個人化提供者。

預設提供者傳回受影響資料列的負數計數。

備註

這個方法會刪除與指定個人化範圍相關聯之基礎資料存放區中的所有資料列。

適用於

另請參閱