CancelAfter

Cancellation.CancelAfter method

Makes a request for cancellation after the expiration of the specified number of milliseconds.

public void CancelAfter(int milliseconds)
Parameter Type Description
milliseconds Int32 The number of milliseconds after which an operation will be cancelled.

Exceptions

exception condition
InvalidOperationException The cancellation is scheduled already.
ArgumentOutOfRangeException milliseconds is less than -1.
ObjectDisposedException The object is disposed.

See Also