CancellationToken.Equals CancellationToken.Equals CancellationToken.Equals CancellationToken.Equals Method

Definition

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

Overloads

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

Determines whether the current CancellationToken instance is equal to the specified Object.

Equals(CancellationToken) Equals(CancellationToken) Equals(CancellationToken) Equals(CancellationToken)

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

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

Determines whether the current CancellationToken instance is equal to the specified Object.

public:
 override bool Equals(System::Object ^ other);
public override bool Equals (object other);
override this.Equals : obj -> bool
Public Overrides Function Equals (other As Object) As Boolean
Parameters
other
Object Object Object Object

The other object to compare with this instance.

Returns

true if other is a CancellationToken and if the two instances are equal; otherwise, false. See the Remarks section for more information.

Exceptions

Remarks

Two cancellation tokens are equal if any one of the following conditions is true:

Equals(CancellationToken) Equals(CancellationToken) Equals(CancellationToken) Equals(CancellationToken)

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

public:
 bool Equals(System::Threading::CancellationToken other);
public bool Equals (System.Threading.CancellationToken other);
override this.Equals : System.Threading.CancellationToken -> bool
Public Function Equals (other As CancellationToken) As Boolean
Parameters
Returns

true if the instances are equal; otherwise, false. See the Remarks section for more information.

Remarks

Two cancellation tokens are equal if any one of the following conditions is true:

Applies to