CancellationTokenRegistration.Equals Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Determines whether the current CancellationTokenRegistration instance is equal to the specified CancellationTokenRegistration.
Overloads
Equals(Object) |
Determines whether the current CancellationTokenRegistration instance is equal to the specified CancellationTokenRegistration. |
Equals(CancellationTokenRegistration) |
Determines whether the current CancellationTokenRegistration instance is equal to the specified CancellationTokenRegistration. |
Equals(Object)
Determines whether the current CancellationTokenRegistration instance is equal to the specified CancellationTokenRegistration.
public:
override bool Equals(System::Object ^ obj);
public override bool Equals (object obj);
public override bool Equals (object? obj);
override this.Equals : obj -> bool
Public Overrides Function Equals (obj As Object) As Boolean
Parameters
- obj
- Object
The other object to which to compare this instance.
Returns
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.
See also
Applies to
Equals(CancellationTokenRegistration)
Determines whether the current CancellationTokenRegistration instance is equal to the specified CancellationTokenRegistration.
public:
virtual bool Equals(System::Threading::CancellationTokenRegistration other);
public bool Equals (System.Threading.CancellationTokenRegistration other);
override this.Equals : System.Threading.CancellationTokenRegistration -> bool
Public Function Equals (other As CancellationTokenRegistration) As Boolean
Parameters
The other CancellationTokenRegistration to which to compare this instance.
Returns
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
See also
Applies to
.NET