Export (0) Print
Expand All

ITrackingPersonalizable.BeginLoad Method

Represents the beginning of the load phase for personalization information.

Namespace:  System.Web.UI.WebControls.WebParts
Assembly:  System.Web (in System.Web.dll)

void BeginLoad()

The Web Parts control set calls this method prior to applying personalization data. A control that tracks its own change state should use this method to set an internal flag indicating that properties should not call SetPersonalizationDirty. This is because property-setting methods can be called during the application of personalization data, subsequent to the call to BeginLoad. In most scenarios, a control should not be considered changed ("dirty") just because its personalizable properties have been set based on data loaded from the underlying data store.

NoteNote

This method is also called when personalization data is applied after importing a Web Parts control.

The following code example demonstrates using the BeginLoad method. For a complete, working code example that consists of a control and an .aspx page, see the IPersonalizable class overview topic.

void ITrackingPersonalizable.BeginLoad()
{
    _loading = true;
    _trackingLog = "1. BeginLoad\r\n";
}

.NET Framework

Supported in: 4.5, 4, 3.5, 3.0, 2.0

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Show:
© 2014 Microsoft