using System; using System.Runtime.InteropServices; using System.Runtime.Serialization; namespace System { /// The exception that is thrown in a thread upon cancellation of an operation that the thread was executing. /// 2 // Token: 0x0200069C RID: 1692 [ComVisible(true)] [Serializable] public class OperationCanceledException : SystemException { /// Initializes a new instance of the class with a system-supplied error message. // Token: 0x0600405C RID: 16476 RVA: 0x000DB824 File Offset: 0x000D9A24 public OperationCanceledException() : base(Locale.GetText("The operation was canceled.")) { base.HResult = -2146233029; } /// Initializes a new instance of the class with a specified error message. /// A that describes the error. // Token: 0x0600405D RID: 16477 RVA: 0x000DB844 File Offset: 0x000D9A44 public OperationCanceledException(string message) : base(message) { base.HResult = -2146233029; } /// Initializes a new instance of the class with a specified error message and a reference to the inner exception that is the cause of this exception. /// The error message that explains the reason for the exception. /// The exception that is the cause of the current exception. If the parameter is not null, the current exception is raised in a catch block that handles the inner exception. // Token: 0x0600405E RID: 16478 RVA: 0x000DB858 File Offset: 0x000D9A58 public OperationCanceledException(string message, Exception innerException) : base(message, innerException) { base.HResult = -2146233029; } /// Initializes a new instance of the class with serialized data. /// The object that holds the serialized object data. /// The contextual information about the source or destination. // Token: 0x0600405F RID: 16479 RVA: 0x000DB870 File Offset: 0x000D9A70 protected OperationCanceledException(SerializationInfo info, StreamingContext context) : base(info, context) { } // Token: 0x04001994 RID: 6548 private const int Result = -2146233029; } }