Equals Method (CancellationTokenRegistration)

Task Parallel System.Threading

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

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

Syntax

Visual Basic (Declaration)
Public Function Equals ( _
	other As CancellationTokenRegistration _
) As Boolean
C#
public bool Equals(
	CancellationTokenRegistration other
)

Parameters

other
Type: System.Threading..::.CancellationTokenRegistration
The other CancellationTokenRegistration to which to compare this instance.

Return Value

True, if both this and other are equal. False, otherwise. Two CancellationTokenRegistration instances are equal if they both refer to the output of a single call to the same Register method of a CancellationToken.

Implements

IEquatable<(Of <(T>)>)..::.Equals(T)

See Also