Share via


ModuleDialogPage.OnRefresh Method

Definition

When overridden in a derived class, refreshes the page.

protected:
 virtual void OnRefresh();
protected virtual void OnRefresh ();
abstract member OnRefresh : unit -> unit
override this.OnRefresh : unit -> unit
Protected Overridable Sub OnRefresh ()

Examples

The following example implements the OnRefresh method.

private void GetSettings() {

    SetUIReadOnly(true);

    StartAsyncTask("Retrieving My Custom settings...",
                   new DoWorkEventHandler(OnWorkerGetSettings),
                   new RunWorkerCompletedEventHandler(
                   OnWorkerGetSettingsCompleted
                   ));

    _hasChanges = false;
} 
protected override void OnRefresh() {
    GetSettings();
} 

Remarks

This method must be overridden to support refreshing. The base class method throws a NotImplementedException.

Applies to