﻿<?xml version="1.0" encoding="utf-8"?><Type Name="ConsoleCancelEventArgs" FullName="System.ConsoleCancelEventArgs"><TypeSignature Language="C#" Value="public sealed class ConsoleCancelEventArgs : EventArgs" /><TypeSignature Language="ILAsm" Value=".class public auto ansi serializable sealed beforefieldinit ConsoleCancelEventArgs extends System.EventArgs" /><AssemblyInfo><AssemblyName>mscorlib</AssemblyName><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><Base><BaseTypeName>System.EventArgs</BaseTypeName></Base><Interfaces /><Docs><since version=".NET 2.0" /><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>A user can interrupt a console application process by simultaneously pressing the <see cref="F:System.ConsoleModifiers.Control" /> modifier key and the <see cref="F:System.ConsoleKey.C" /> console key (Ctrl+C), or the <see cref="F:System.ConsoleModifiers.Control" /> modifier key and the Break console key (Ctrl+Break). The .NET Framework consequently provides a <see cref="T:System.ConsoleCancelEventArgs" /> object to the event handler for the <see cref="E:System.Console.CancelKeyPress" /> event to specify whether the process should be cancelled. </para><para>If the <see cref="P:System.ConsoleCancelEventArgs.Cancel" /> property is set to true in the event handler, the process is resumed; otherwise, the process is terminated. By default, the value of the <see cref="T:System.ConsoleCancelEventArgs" /> property is false, and the process terminates. </para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Provides data for the <see cref="E:System.Console.CancelKeyPress" /> event. This class cannot be inherited.</para></summary></Docs><Members><Member MemberName="Cancel"><MemberSignature Language="C#" Value="public bool Cancel { get; set; }" /><MemberSignature Language="ILAsm" Value=".property instance bool Cancel" /><MemberType>Property</MemberType><AssemblyInfo><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Boolean</ReturnType></ReturnValue><Docs><value>To be added.</value><since version=".NET 2.0" /><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>The <see cref="P:System.ConsoleCancelEventArgs.Cancel" /> property is automatically initialized to false when the handler for the <see cref="E:System.Console.CancelKeyPress" /> event is invoked. The value of the <see cref="P:System.ConsoleCancelEventArgs.Cancel" /> property when the event handler finishes determines whether the current process resumes or terminates. </para><para>In a set operation after Ctrl+C is pressed, specify true to indicate that the current process should resume when the event handler concludes, or false to indicate that the current process should terminate. </para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Gets or sets a value that indicates whether simultaneously pressing the <see cref="F:System.ConsoleModifiers.Control" /> modifier key and the <see cref="F:System.ConsoleKey.C" /> console key (Ctrl+C) or the Ctrl+Break keys terminates the current process. The default is false, which terminates the current process. </para></summary></Docs></Member><Member MemberName="SpecialKey"><MemberSignature Language="C#" Value="public ConsoleSpecialKey SpecialKey { get; }" /><MemberSignature Language="ILAsm" Value=".property instance valuetype System.ConsoleSpecialKey SpecialKey" /><MemberType>Property</MemberType><AssemblyInfo><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.ConsoleSpecialKey</ReturnType></ReturnValue><Docs><value>To be added.</value><remarks>To be added.</remarks><since version=".NET 2.0" /><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Gets the combination of modifier and console keys that interrupted the current process.</para></summary></Docs></Member></Members></Type>