ModulePage.OnActivated(Boolean) 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.
Indicates that the page has been activated.
protected:
virtual void OnActivated(bool initialActivation);
protected virtual void OnActivated (bool initialActivation);
abstract member OnActivated : bool -> unit
override this.OnActivated : bool -> unit
Protected Overridable Sub OnActivated (initialActivation As Boolean)
Parameters
- initialActivation
- Boolean
true
to do additional processing for the first activation; otherwise, false
.
Implements
Examples
The following example implements this method.
protected override void OnActivated(bool initialActivation) {
base.OnActivated(initialActivation);
initProxyRefresh(initialActivation);
initClmHdr();
}
Remarks
Applications should check the initialActivation
state prior to doing expensive one-time initialization work.