FormClosingEventArgs(CloseReason, Boolean) Constructor
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.
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
التعاون معنا على GitHub
يمكن العثور على مصدر هذا المحتوى على GitHub حيث يمكنك أيضاً إضافة مشاكل وطلبات سحب ومراجعتها. للحصول على معلومات إضافية، اطلع على دليل المساهم لدينا.