Share via


ModuleListPage.OnActivated(Boolean) Method

Definition

Indicates that a page is displayed in IIS Manager.

protected:
 override void OnActivated(bool initialActivation);
protected override void OnActivated (bool initialActivation);
override this.OnActivated : bool -> unit
Protected Overrides Sub OnActivated (initialActivation As Boolean)

Parameters

initialActivation
Boolean

true to indicate the first activation of the page; otherwise, false.

Examples

The following example creates a proxy service, if the initialActivation parameter is true, and then calls the refresh method.

protected override void OnActivated(bool initialActivation) {
    base.OnActivated(initialActivation);

    if (initialActivation) {
        _serviceProxy = (DemoModuleServiceProxy)
            Connection.CreateProxy(Module,
            typeof(DemoModuleServiceProxy));

        Refresh();
    }
}

Remarks

This method is typically overridden to perform a one-time initialization the first time a page is displayed.

Applies to