# CancellationTokenRegistration.Equals Método

## Definición

Determina si la instancia de CancellationTokenRegistration actual es igual que la instancia de CancellationTokenRegistration especificada.Determines whether the current CancellationTokenRegistration instance is equal to the specified CancellationTokenRegistration.

## Sobrecargas

 Equals(Object) Determina si la instancia de CancellationTokenRegistration actual es igual que la instancia de CancellationTokenRegistration especificada.Determines whether the current CancellationTokenRegistration instance is equal to the specified CancellationTokenRegistration. Equals(CancellationTokenRegistration) Determina si la instancia de CancellationTokenRegistration actual es igual que la instancia de CancellationTokenRegistration especificada.Determines whether the current CancellationTokenRegistration instance is equal to the specified CancellationTokenRegistration.

## Equals(Object)

Determina si la instancia de CancellationTokenRegistration actual es igual que la instancia de CancellationTokenRegistration especificada.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``

#### Parámetros

obj
Object

Otro objeto con el que se va a comparar esta instancia.The other object to which to compare this instance.

#### Devoluciones

Boolean

`true` si la instancia actual y `obj` son iguales.`true` if both this and `obj` are equal. De lo contrario, false.False, otherwise.

Dos instancias de CancellationTokenRegistration son iguales si ambas hacen referencia al resultado de una sola llamada al mismo método Register de un CancellationToken.Two CancellationTokenRegistration instances are equal if they both refer to the output of a single call to the same Register method of a CancellationToken.

## Equals(CancellationTokenRegistration)

Determina si la instancia de CancellationTokenRegistration actual es igual que la instancia de CancellationTokenRegistration especificada.Determines whether the current CancellationTokenRegistration instance is equal to the specified CancellationTokenRegistration.

``````public:
``public bool Equals (System.Threading.CancellationTokenRegistration other);``
``override this.Equals : System.Threading.CancellationTokenRegistration -> bool``
``Public Function Equals (other As CancellationTokenRegistration) As Boolean``

#### Parámetros

other
CancellationTokenRegistration

El otro objeto CancellationTokenRegistration con el que se va a comparar esta instancia.The other CancellationTokenRegistration to which to compare this instance.

#### Devoluciones

Boolean

`true` si la instancia actual y `other` son iguales.`true` if both this and `other` are equal. De lo contrario, false.False, otherwise.

Dos instancias de CancellationTokenRegistration son iguales si ambas hacen referencia al resultado de una sola llamada al mismo método Register de un CancellationToken.Two CancellationTokenRegistration instances are equal if they both refer to the output of a single call to the same Register method of a CancellationToken.