Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

CancellationToken.Inequality Operator

Determines whether two CancellationToken instances are not equal.

Namespace:  System.Threading
Assembly:  mscorlib (in mscorlib.dll)

public static bool operator !=(
	CancellationToken left,
	CancellationToken right
)

Parameters

left
Type: System.Threading.CancellationToken
The first instance.
right
Type: System.Threading.CancellationToken
The second instance.

Return Value

Type: System.Boolean
True if the instances are not equal; otherwise, false.

ExceptionCondition
ObjectDisposedException

An associated CancellationTokenSource has been disposed.

Windows Phone OS

Supported in: 8.1, 8.0

Show:
© 2015 Microsoft