mscorlib(4.0.0.0) API with additions
TaskCanceledException.cs
1
using
System
.
Runtime
.
Serialization
;
2
3
namespace
System.Threading.Tasks
4
{
6
[
Serializable
]
7
[__DynamicallyInvokable]
8
public
class
TaskCanceledException
:
OperationCanceledException
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]
27
public
TaskCanceledException
()
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]
52
public
TaskCanceledException
(
Task
task)
53
: base(
Environment
.GetResourceString(
"TaskCanceledException_ctor_DefaultMessage"
), task?.
CancellationToken
?? default(
CancellationToken
))
54
{
55
m_canceledTask = task;
56
}
57
61
protected
TaskCanceledException
(
SerializationInfo
info,
StreamingContext
context)
62
: base(info, context)
63
{
64
}
65
}
66
}
System.Threading.CancellationToken
Propagates notification that operations should be canceled.
Definition:
CancellationToken.cs:14
System.Runtime
Definition:
AssemblyTargetedPatchBandAttribute.cs:1
System
Definition:
__Canon.cs:3
System.Runtime.Serialization.StreamingContext
Describes the source and destination of a given serialized stream, and provides an additional caller-...
Definition:
StreamingContext.cs:9
System.Environment
Provides information about, and means to manipulate, the current environment and platform....
Definition:
Environment.cs:21
System.Threading.Tasks.TaskCanceledException.TaskCanceledException
TaskCanceledException(SerializationInfo info, StreamingContext context)
Initializes a new instance of the T:System.Threading.Tasks.TaskCanceledException class with serialize...
Definition:
TaskCanceledException.cs:61
System.Threading.Tasks.TaskCanceledException.TaskCanceledException
TaskCanceledException(string message)
Initializes a new instance of the T:System.Threading.Tasks.TaskCanceledException class with a specifi...
Definition:
TaskCanceledException.cs:35
System.Runtime.Serialization
Definition:
DeserializationEventHandler.cs:1
System.Threading.Tasks.TaskCanceledException.TaskCanceledException
TaskCanceledException()
Initializes a new instance of the T:System.Threading.Tasks.TaskCanceledException class with a system-...
Definition:
TaskCanceledException.cs:27
System.Runtime.Serialization.SerializationInfo
Stores all the data needed to serialize or deserialize an object. This class cannot be inherited.
Definition:
SerializationInfo.cs:12
System.OperationCanceledException
The exception that is thrown in a thread upon cancellation of an operation that the thread was execut...
Definition:
OperationCanceledException.cs:11
System.Exception
Represents errors that occur during application execution.To browse the .NET Framework source code fo...
Definition:
Exception.cs:22
System.Threading.Tasks.TaskCanceledException.TaskCanceledException
TaskCanceledException(string message, Exception innerException)
Initializes a new instance of the T:System.Threading.Tasks.TaskCanceledException class with a specifi...
Definition:
TaskCanceledException.cs:44
System.Reflection.TypeAttributes.Serializable
Specifies that the class can be serialized.
System.Threading.Tasks
Definition:
AsyncCausalityStatus.cs:3
System.Threading.Tasks.Task
Represents an asynchronous operation that can return a value.
Definition:
Task.cs:18
System.Threading.Tasks.TaskCanceledException
Represents an exception used to communicate task cancellation.
Definition:
TaskCanceledException.cs:8
All cs
System.Threading.Tasks
TaskCanceledException.cs
Generated by
1.8.15