mscorlib(4.0.0.0) API with additions
TaskCanceledException.cs
2 
4 {
7  [__DynamicallyInvokable]
9  {
10  [NonSerialized]
11  private Task m_canceledTask;
12 
15  [__DynamicallyInvokable]
16  public Task Task
17  {
18  [__DynamicallyInvokable]
19  get
20  {
21  return m_canceledTask;
22  }
23  }
24 
26  [__DynamicallyInvokable]
28  : base(Environment.GetResourceString("TaskCanceledException_ctor_DefaultMessage"))
29  {
30  }
31 
34  [__DynamicallyInvokable]
35  public TaskCanceledException(string message)
36  : base(message)
37  {
38  }
39 
43  [__DynamicallyInvokable]
44  public TaskCanceledException(string message, Exception innerException)
45  : base(message, innerException)
46  {
47  }
48 
51  [__DynamicallyInvokable]
53  : base(Environment.GetResourceString("TaskCanceledException_ctor_DefaultMessage"), task?.CancellationToken ?? default(CancellationToken))
54  {
55  m_canceledTask = task;
56  }
57 
62  : base(info, context)
63  {
64  }
65  }
66 }
Propagates notification that operations should be canceled.
Definition: __Canon.cs:3
Describes the source and destination of a given serialized stream, and provides an additional caller-...
Provides information about, and means to manipulate, the current environment and platform....
Definition: Environment.cs:21
TaskCanceledException(SerializationInfo info, StreamingContext context)
Initializes a new instance of the T:System.Threading.Tasks.TaskCanceledException class with serialize...
TaskCanceledException(string message)
Initializes a new instance of the T:System.Threading.Tasks.TaskCanceledException class with a specifi...
TaskCanceledException()
Initializes a new instance of the T:System.Threading.Tasks.TaskCanceledException class with a system-...
Stores all the data needed to serialize or deserialize an object. This class cannot be inherited.
The exception that is thrown in a thread upon cancellation of an operation that the thread was execut...
Represents errors that occur during application execution.To browse the .NET Framework source code fo...
Definition: Exception.cs:22
TaskCanceledException(string message, Exception innerException)
Initializes a new instance of the T:System.Threading.Tasks.TaskCanceledException class with a specifi...
Specifies that the class can be serialized.
Represents an asynchronous operation that can return a value.
Definition: Task.cs:18
Represents an exception used to communicate task cancellation.