Edit

Kongsi melalui


FormClosingEventArgs(CloseReason, Boolean) Constructor

Definition

Initializes a new instance of the FormClosingEventArgs class.

public:
 FormClosingEventArgs(System::Windows::Forms::CloseReason closeReason, bool cancel);
public FormClosingEventArgs (System.Windows.Forms.CloseReason closeReason, bool cancel);
new System.Windows.Forms.FormClosingEventArgs : System.Windows.Forms.CloseReason * bool -> System.Windows.Forms.FormClosingEventArgs
Public Sub New (closeReason As CloseReason, cancel As Boolean)

Parameters

closeReason
CloseReason

A CloseReason value that represents the reason why the form is being closed.

cancel
Boolean

true to cancel the event; otherwise, false.

Remarks

The closeReason and cancel parameters are used to initialize the CloseReason and Cancel properties, respectively.

Applies to

See also