Files
Dec2017-Script-Dump/mscorlib/System/ConsoleCancelEventArgs.cs
T
2026-06-04 11:42:34 +02:00

56 lines
2.1 KiB
C#

using System;
namespace System
{
/// <summary>Provides data for the <see cref="E:System.Console.CancelKeyPress" /> event. This class cannot be inherited.</summary>
/// <filterpriority>2</filterpriority>
// Token: 0x02000646 RID: 1606
[Serializable]
public sealed class ConsoleCancelEventArgs : EventArgs
{
// Token: 0x06003BB0 RID: 15280 RVA: 0x000CAE74 File Offset: 0x000C9074
internal ConsoleCancelEventArgs(ConsoleSpecialKey key)
{
this.specialKey = key;
}
/// <summary>Gets or sets a value indicating whether simultaneously pressing the <see cref="F:System.ConsoleModifiers.Control" /> modifier key and <see cref="F:System.ConsoleKey.C" /> console key (CTRL+C) terminates the current process.</summary>
/// <returns>true if the current process should resume when the event handler concludes; false if the current process should terminate.</returns>
/// <exception cref="T:System.InvalidOperationException">true was specified in a set operation and the event was caused by simultaneously pressing the <see cref="F:System.ConsoleModifiers.Control" /> modifier key and the BREAK console key (CTRL+BREAK).</exception>
/// <filterpriority>2</filterpriority>
// Token: 0x17000B62 RID: 2914
// (get) Token: 0x06003BB1 RID: 15281 RVA: 0x000CAE84 File Offset: 0x000C9084
// (set) Token: 0x06003BB2 RID: 15282 RVA: 0x000CAE8C File Offset: 0x000C908C
public bool Cancel
{
get
{
return this.cancel;
}
set
{
this.cancel = value;
}
}
/// <summary>Gets the combination of modifier and console keys that interrupted the current process.</summary>
/// <returns>One of the <see cref="T:System.ConsoleSpecialKey" /> values. There is no default value.</returns>
/// <filterpriority>1</filterpriority>
// Token: 0x17000B63 RID: 2915
// (get) Token: 0x06003BB3 RID: 15283 RVA: 0x000CAE98 File Offset: 0x000C9098
public ConsoleSpecialKey SpecialKey
{
get
{
return this.specialKey;
}
}
// Token: 0x040017CE RID: 6094
private bool cancel;
// Token: 0x040017CF RID: 6095
private ConsoleSpecialKey specialKey;
}
}