ITrackingPersonalizable.BeginLoad Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Represents the beginning of the load phase for personalization information.
public:
void BeginLoad();
public void BeginLoad ();
abstract member BeginLoad : unit -> unit
Public Sub BeginLoad ()
Examples
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";
}
Sub BeginLoad() Implements ITrackingPersonalizable.BeginLoad
_loading = True
_trackingLog = "1. BeginLoad" + vbCr + vbLf
End Sub
Remarks
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.
Note
This method is also called when personalization data is applied after importing a Web Parts control.
Applies to
.NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기