## CancellationTokenRegistration::Dispose method


Disposes the registration and removes the callback from the associated [CancellationTokenSource](../../cancellationtokensource/). After calling this method, the registered callback will no longer be invoked when the associated [CancellationTokenSource](../../cancellationtokensource/) is canceled.

```cpp
void System::Threading::CancellationTokenRegistration::Dispose()
```

## Remarks



It is safe to call this method multiple times - subsequent calls will have no effect. 

## See Also

* Class [CancellationTokenRegistration](../)
* Namespace [System::Threading](../../)
* Library [Aspose.TeX for C++](../../../)
