語言

PersonalizationProvider.ResetPersonalizationBlob 方法

定義

當在派生類別中覆寫時,會從底層資料儲存庫中刪除原始個人化資料。

protected:
 abstract void ResetPersonalizationBlob(System::Web::UI::WebControls::WebParts::WebPartManager ^ webPartManager, System::String ^ path, System::String ^ userName);
protected abstract void ResetPersonalizationBlob(System.Web.UI.WebControls.WebParts.WebPartManager webPartManager, string path, string userName);
abstract member ResetPersonalizationBlob : System.Web.UI.WebControls.WebParts.WebPartManager * string * string -> unit
Protected MustOverride Sub ResetPersonalizationBlob (webPartManager As WebPartManager, path As String, userName As String)

參數

webPartManager
WebPartManager

管理 WebPartManager 個人化資料。

path
String

個人化資訊的路徑將作為資料儲存鍵使用。

userName
String

個人化資訊的使用者名稱將用作資料儲存鍵。

備註

衍生 PersonalizationProvider 並實作此方法的類別應使用 webPartManager、 、 path和 userName 參數作為儲存鍵。 衍生實作必須修改資料儲存,使所提供儲存金鑰的個人化資料被有效刪除。 如何實際實現這點,取決於衍生版本。

衍生的個人化提供者必須能依每頁區分個人化資料。 此外,針對特定頁面的狀態,個人化提供者必須能夠區分 Shared 與 User 範圍資料。 若提供非null 使用者名稱,則重置操作會套用在 User 作用域;否則,重置操作則適用於 Shared 作用域。

適用於