ModuleDialogPage.OnRefresh 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.
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.