ITrackingPersonalizable.EndLoad 方法

定义

表示已经将个性化数据应用于控件之后的阶段。Represents the phase after personalization data has been applied to a control.

public:
 void EndLoad();
public void EndLoad ();
abstract member EndLoad : unit -> unit
Public Sub EndLoad ()

示例

下面的代码示例演示如何使用 EndLoad 方法。The following code example demonstrates using the EndLoad method. 有关由控件和 .aspx 页组成的完整工作代码示例,请参阅 IPersonalizable 类概述主题。For a complete, working code example that consists of a control and an .aspx page, see the IPersonalizable class overview topic.

void ITrackingPersonalizable.EndLoad()
{
    _loading = false;
    _trackingLog += "2. EndLoad\r\n";
}
Sub EndLoad() Implements ITrackingPersonalizable.EndLoad
    _loading = False
    _trackingLog += "2. EndLoad" + vbCr + vbLf

End Sub

注解

Web 部件控件集在将个性化设置数据应用于控件后调用此方法。The Web Parts control set calls this method after personalization data has been applied to the control. 跟踪其更改状态的控件应使用此方法来重置其内部状态,以指示后面的属性设置方法应调用 SetPersonalizationDirtyA control that tracks its change state should use this method to reset its internal state to indicate that subsequent property-setting methods should call SetPersonalizationDirty. EndLoad调用方法时,Web 部件控件集已完成对控件的个性化设置数据的任何应用。By the time the EndLoad method is called, the Web Parts control set has completed any application of personalization data to the control. 因此,对控件状态的后续更改应被视为有效指示器,因为控件已更改 (是 "脏" ) 。As a result, subsequent changes to the control's state should be considered valid indicators that the control has changed (is "dirty").

备注

导入 Web 部件控件后,如果应用了个性化数据,也会调用此方法。This method is also called when personalization data is applied after importing a Web Parts control.

适用于