System.Threading.CancellationToken.Equals Method

Determines whether the current System.Threading.CancellationToken instance is equal to the specified token.

Syntax

public bool Equals (CancellationToken other)

Parameters

other
The other System.Threading.CancellationToken to which to compare this instance.

Returns

True if the instances are equal; otherwise, false. Two tokens are equal if they are associated with the same System.Threading.CancellationTokenSource or if they were both constructed from public CancellationToken constructors and their CancellationToken.IsCancellationRequested values are equal.

Remarks

Documentation for this section has not yet been entered.

Requirements

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