Method Cancel
- Namespace
- KZDev.SystemClock.PrimeTime
- Assembly
- KZDev.SystemClock.PrimeTime.dll
Cancel()
Communicates a request for cancellation.
public void Cancel()
Exceptions
- ObjectDisposedException
This instance has been disposed.
Cancel(bool)
Communicates a request for cancellation and specifies whether an exception should be thrown if cancellation is successful.
public void Cancel(bool throwOnFirstException)
Parameters
throwOnFirstExceptionboolTrue if an exception should be thrown if cancellation is successful; otherwise false.
Remarks
Delegates to Cancel(bool). When
throwOnFirstException is true, the first exception from a
failing registered callback is thrown directly (see the BCL method). When it is
false, failures from multiple callbacks may be wrapped in an
AggregateException.
Exceptions
- AggregateException
throwOnFirstExceptionisfalseand one or more registered cancellation callbacks throw.- ObjectDisposedException
This instance has been disposed.