ModulePropertiesPage.CancelChanges 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.
Cancels pending changes.
protected:
override void CancelChanges();
protected override void CancelChanges ();
override this.CancelChanges : unit -> unit
Protected Overrides Sub CancelChanges ()
Examples
The following example displays a message box to confirm whether changes should be canceled.
protected override void CancelChanges() {
DialogResult dr;
dr = MessageBox.Show("Discard changes?",
"Red Alert",
MessageBoxButtons.YesNo
);
if (dr == DialogResult.Yes)
base.CancelChanges();
}
Remarks
This method is called when the user clicks the Cancel button.
This method is implemented in the base class; you do not need to override it unless additional processing is required.
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for