| File: System\ComponentModel\CancelEventArgs.cs | Web Access |
| Project: System.ComponentModel.csproj (System.ComponentModel) |
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. namespace System.ComponentModel { /// <summary> /// EventArgs used to describe a cancel event. /// </summary> public class CancelEventArgs : EventArgs { /// <summary> /// Gets or sets a value indicating whether we should cancel the operation or not /// </summary> public bool Cancel { get; set; } /// <summary> /// Default constructor /// </summary> public CancelEventArgs() { } /// <summary> /// Helper constructor /// </summary> /// <param name="cancel"></param> public CancelEventArgs(bool cancel) => Cancel = cancel; } }