Table of Contents

Method Cancel

Namespace
KZDev.PrimeTime
Assembly
KZDev.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

throwOnFirstException bool

True 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

throwOnFirstException is false and one or more registered cancellation callbacks throw.

ObjectDisposedException

This instance has been disposed.