Share via


CancellationTokenRegistration.Equals Method (Object)

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

Determines whether the current CancellationTokenRegistration instance is equal to the specified CancellationTokenRegistration.

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

Syntax

'Declaration
Public Overrides Function Equals ( _
    obj As Object _
) As Boolean
public override bool Equals(
    Object obj
)

Parameters

  • obj
    Type: System.Object
    The other object to which to compare this instance.

Return Value

Type: System.Boolean
True, if both this and obj 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.

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.