WebPartPersonalization.ExtractPersonalizationState 方法

定义

从父 WebPartManager 控件中提取个性化设置数据。Extracts personalization data from the parent WebPartManager control.

重载

ExtractPersonalizationState()

从父 WebPartManager 控件中提取个性化设置数据。Extracts personalization data from the parent WebPartManager control.

ExtractPersonalizationState(WebPart)

当父 WebPartManager 控件请求从 Web 部件控件提取个性化设置数据时,按照其请求执行。Extracts personalization data from a Web Parts control when requested to do so by the parent WebPartManager control.

ExtractPersonalizationState()

从父 WebPartManager 控件中提取个性化设置数据。Extracts personalization data from the parent WebPartManager control.

protected public:
 virtual void ExtractPersonalizationState();
protected internal virtual void ExtractPersonalizationState ();
abstract member ExtractPersonalizationState : unit -> unit
override this.ExtractPersonalizationState : unit -> unit
Protected Friend Overridable Sub ExtractPersonalizationState ()

例外

在从基础数据存储区加载状态之前,进行了提取个性化设置状态的尝试。An attempt was made to extract personalization state prior to the state being loaded from the underlying data store.

- 或 --or-

尚未应用个性化设置状态。Personalization state has not been applied yet.

- 或 --or-

自应用个性化设置数据以来,IDWebPartManager 已更改。The ID of the WebPartManager has changed since personalization data was applied.

- 或 --or-

从数据存储区返回的个性化设置状态为 nullThe personalization state returned from the data store was null.

注解

如果 IsEnabled 属性设置为 true ,并且在页面请求期间未重置个性化设置状态 (例如 ShouldResetPersonalizationState ,当) 属性时 false ,此方法在 WebPartManager 其事件期间从父控件提取个性化设置数据 SaveStateCompleteIf the IsEnabled property is set to true, and personalization state is not being reset during the page request (such as when the ShouldResetPersonalizationState property is false), then this method extracts personalization data from the parent WebPartManager control during its SaveStateComplete event.

此方法对 ExtractWebPartManagerPersonalization 实例调用方法 PersonalizationState ,以从父控件提取个性化设置状态 WebPartManagerThis method calls the ExtractWebPartManagerPersonalization method on the PersonalizationState instance to extract personalization state from the parent WebPartManager control.

另请参阅

适用于

ExtractPersonalizationState(WebPart)

当父 WebPartManager 控件请求从 Web 部件控件提取个性化设置数据时,按照其请求执行。Extracts personalization data from a Web Parts control when requested to do so by the parent WebPartManager control.

protected public:
 virtual void ExtractPersonalizationState(System::Web::UI::WebControls::WebParts::WebPart ^ webPart);
protected internal virtual void ExtractPersonalizationState (System.Web.UI.WebControls.WebParts.WebPart webPart);
abstract member ExtractPersonalizationState : System.Web.UI.WebControls.WebParts.WebPart -> unit
override this.ExtractPersonalizationState : System.Web.UI.WebControls.WebParts.WebPart -> unit
Protected Friend Overridable Sub ExtractPersonalizationState (webPart As WebPart)

参数

webPart
WebPart

包含要提取的个性化设置数据的 Web 部件控件。The Web Parts control containing personalization data to be extracted.

例外

进行了从不受父 WebPartManager 管理的 Web 部件控件提取个性化设置状态的尝试。An attempt was made to extract personalization state from a Web Parts control that is not managed by the parent WebPartManager.

在从基础数据存储区加载状态之前,进行了提取个性化设置状态的尝试。An attempt was made to extract personalization state prior to the state being loaded from the underlying data store.

- 或 --or-

尚未应用个性化设置状态。Personalization state has not been applied yet.

- 或 --or-

自应用个性化设置数据以来,IDWebPart 已更改。The ID of the WebPart has changed since personalization data was applied.

- 或 --or-

从数据存储区返回的个性化设置状态为 nullThe personalization state returned from the data store was null.

注解

如果 IsEnabled 属性设置为 true ,并且在页面请求期间未重置个性化设置状态 (例如 ShouldResetPersonalizationState ,当) 属性时 false ,此方法从指定的 Web 部件控件提取个性化设置数据 webPartIf the IsEnabled property is set to true, and personalization state is not being reset during the page request (such as when the ShouldResetPersonalizationState property is false), then this method extracts personalization data from the Web Parts control specified by webPart. 此方法对 ExtractWebPartPersonalization 实例调用方法 PersonalizationState ,以从提供的 Web 部件控件中提取个性化设置状态。This method calls the ExtractWebPartPersonalization method on the PersonalizationState instance to extract personalization state from the supplied Web Parts control.

另请参阅

适用于