Редагувати

Поділитися через


Window.OnClosing(CancelEventArgs) Method

Definition

Raises the Closing event.

protected:
 virtual void OnClosing(System::ComponentModel::CancelEventArgs ^ e);
protected virtual void OnClosing (System.ComponentModel.CancelEventArgs e);
abstract member OnClosing : System.ComponentModel.CancelEventArgs -> unit
override this.OnClosing : System.ComponentModel.CancelEventArgs -> unit
Protected Overridable Sub OnClosing (e As CancelEventArgs)

Parameters

e
CancelEventArgs

A CancelEventArgs that contains the event data.

Remarks

OnClosing raises the Closing event.

A type that derives from Window may override OnClosing. The overridden method must call OnClosing on the base class if Closing needs to be raised.

Applies to

See also