set_Cancel()

CancelEventArgs::set_Cancel(bool) method

Sets value indicating whether the event should be cancelled.

void System::ComponentModel::CancelEventArgs::set_Cancel(bool cancel)

Arguments

ParameterTypeDescription
cancelboolIf true, the event should be cancelled, if false, it should not.

See Also