Udostępnij za pośrednictwem


CancellationToken.Inequality Operator

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Determines whether two CancellationToken instances are not equal.

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

Syntax

'Declaration
Public Shared Operator <> ( _
    left As CancellationToken, _
    right As CancellationToken _
) As Boolean
public static bool operator !=(
    CancellationToken left,
    CancellationToken right
)

Parameters

Return Value

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

Exceptions

Exception Condition
ObjectDisposedException

An associated CancellationTokenSource has been disposed.

Version Information

Silverlight

Supported in: 5

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.