1 type derived from OperationCanceledException
mscorlib (1)
system\threading\Tasks\TaskCanceledException.cs (1)
27public class TaskCanceledException : OperationCanceledException
24 instantiations of OperationCanceledException
mscorlib (13)
system\io\__error.cs (1)
185throw new OperationCanceledException();
system\threading\CancellationToken.cs (1)
482throw new OperationCanceledException(Environment.GetResourceString("OperationCanceled"), this);
system\threading\Tasks\Parallel.cs (11)
234throw new OperationCanceledException(parallelOptions.CancellationToken); 310throw new OperationCanceledException(parallelOptions.CancellationToken); 359throw new OperationCanceledException(parallelOptions.CancellationToken); 1068throw new OperationCanceledException(parallelOptions.CancellationToken); 1090oce = new OperationCanceledException(parallelOptions.CancellationToken); 1383throw new OperationCanceledException(parallelOptions.CancellationToken); 1405oce = new OperationCanceledException(parallelOptions.CancellationToken); 2234throw new OperationCanceledException(parallelOptions.CancellationToken); 3220throw new OperationCanceledException(parallelOptions.CancellationToken); 3256oce = new OperationCanceledException(parallelOptions.CancellationToken); 3570if (bCollectionNotZeroLength) throw new OperationCanceledException(ct);
PresentationFramework (1)
src\Framework\MS\Internal\AppModel\ApplicationProxyInternal.cs (1)
818throw new OperationCanceledException();
System.Activities (2)
System\Activities\ActivityUtilities.cs (1)
628throw FxTrace.Exception.AsError(new OperationCanceledException(options.CancellationToken));
System\Activities\Runtime\ActivityExecutor.cs (1)
1042Abort(new OperationCanceledException());
System.Core (6)
System\Diagnostics\Eventing\Reader\EventLogException.cs (1)
40throw new OperationCanceledException();
System\IO\__Error.cs (1)
209throw new OperationCanceledException();
System\Linq\Parallel\QueryOperators\QueryOperator.cs (2)
155throw new OperationCanceledException(querySettings.CancellationState.ExternalCancellationToken); 157throw new OperationCanceledException();
System\Linq\Parallel\Scheduling\CancellationState.cs (2)
84throw new OperationCanceledException(token); 93throw new OperationCanceledException(oceMessage, externalCancellationToken);
System.ServiceModel.Discovery (2)
System\ServiceModel\Discovery\AnnouncementDispatcherAsyncResult.cs (1)
185Complete(false, new OperationCanceledException());
System\ServiceModel\Discovery\RandomDelaySendsAsyncResult.cs (1)
282Complete(false, new OperationCanceledException());
110 references to OperationCanceledException
mscorlib (30)
system\io\memorystream.cs (2)
399catch (OperationCanceledException oce) 623catch (OperationCanceledException oce)
system\io\unmanagedmemorystream.cs (2)
470Contract.Assert(! (ex is OperationCanceledException)); 666Contract.Assert(! (ex is OperationCanceledException));
system\runtime\compilerservices\AsyncMethodBuilder.cs (2)
661var oce = exception as OperationCanceledException;
system\threading\CancellationToken.cs (1)
463/// <exception cref="System.OperationCanceledException">The token has had cancellation requested.</exception>
system\threading\SemaphoreSlim.cs (4)
270/// <exception cref="System.OperationCanceledException"><paramref name="cancellationToken"/> was canceled.</exception> 312/// <exception cref="System.OperationCanceledException"><paramref name="cancellationToken"/> was canceled.</exception> 377OperationCanceledException oce = null; 392catch (OperationCanceledException e) { oce = e; }
system\threading\Tasks\FutureFactory.cs (3)
543OperationCanceledException oce = null; 557catch (OperationCanceledException _oce) { oce = _oce; } 1452catch (OperationCanceledException oce)
system\threading\Tasks\Parallel.cs (5)
1078OperationCanceledException oce = null; 1393OperationCanceledException oce = null; 3244OperationCanceledException oce = null; 3561OperationCanceledException oce = e as OperationCanceledException;
system\threading\Tasks\Task.cs (7)
1456/// <see cref="System.OperationCanceledException">OperationCanceledException</see> that bears the same 2910OperationCanceledException exceptionAsOce = unhandledException as OperationCanceledException; 3347/// <exception cref="System.OperationCanceledException">The wait was canceled.</exception> 5590internal static Task<TResult> FromCancellation<TResult>(OperationCanceledException exception) 7284OperationCanceledException oce; 7287(oce = oceEdi.SourceException as OperationCanceledException) != null)
system\threading\Tasks\TaskExceptionHolder.cs (4)
219var oce = exceptionObject as OperationCanceledException; 227Contract.Assert(edi != null && edi.SourceException is OperationCanceledException, 422Contract.Assert(edi == null || edi.SourceException is OperationCanceledException,
PresentationFramework (2)
src\Framework\MS\Internal\AppModel\RootBrowserWindow.cs (2)
557catch (OperationCanceledException) 586catch (OperationCanceledException)
System (32)
net\System\Net\WebSockets\WebSocketBase.cs (3)
1287return error is OperationCanceledException || 1309OperationCanceledException operationCanceledException = exception as OperationCanceledException;
services\monitoring\system\diagnosticts\AsyncStreamReader.cs (1)
168catch (OperationCanceledException ) {
sys\system\collections\concurrent\BlockingCollection.cs (27)
279/// A <see cref="System.OperationCanceledException"/> is thrown if the <see cref="CancellationToken"/> is 284/// <exception cref="OperationCanceledException">If the <see cref="CancellationToken"/> is canceled.</exception> 371/// A <see cref="System.OperationCanceledException"/> is thrown if the <see cref="CancellationToken"/> is 380/// <exception cref="OperationCanceledException">If the <see cref="CancellationToken"/> is canceled.</exception> 405/// <exception cref="OperationCanceledException">If the <see cref="CancellationToken"/> is canceled.</exception> 439catch (OperationCanceledException) 647/// A <see cref="System.OperationCanceledException"/> is thrown if the <see cref="CancellationToken"/> is 656/// <exception cref="OperationCanceledException">If the <see cref="CancellationToken"/> is canceled.</exception> 674/// A <see cref="System.OperationCanceledException"/> is thrown if the <see cref="CancellationToken"/> is 684/// <exception cref="OperationCanceledException">If the <see cref="CancellationToken"/> is canceled.</exception> 716catch (OperationCanceledException) 823/// A <see cref="System.OperationCanceledException"/> is thrown if the <see cref="CancellationToken"/> is 830/// <exception cref="OperationCanceledException">If the <see cref="CancellationToken"/> is canceled.</exception> 945/// A <see cref="System.OperationCanceledException"/> is thrown if the <see cref="CancellationToken"/> is 955/// <exception cref="OperationCanceledException">If the <see cref="CancellationToken"/> is canceled.</exception> 975/// A <see cref="System.OperationCanceledException"/> is thrown if the <see cref="CancellationToken"/> is 985/// <exception cref="OperationCanceledException">If the <see cref="CancellationToken"/> is canceled.</exception> 1194/// A <see cref="System.OperationCanceledException"/> is thrown if the <see cref="CancellationToken"/> is 1204/// <exception cref="OperationCanceledException">If the <see cref="CancellationToken"/> is canceled.</exception> 1314/// A <see cref="System.OperationCanceledException"/> is thrown if the <see cref="CancellationToken"/> is 1324/// <exception cref="OperationCanceledException">If the <see cref="CancellationToken"/> is canceled.</exception> 1346/// A <see cref="System.OperationCanceledException"/> is thrown if the <see cref="CancellationToken"/> is 1357/// <exception cref="OperationCanceledException">If the <see cref="CancellationToken"/> is canceled.</exception> 1381/// A <see cref="System.OperationCanceledException"/> is thrown if the <see cref="CancellationToken"/> is 1392/// <exception cref="OperationCanceledException">If the <see cref="CancellationToken"/> is canceled.</exception> 1663/// throw an <see cref="System.OperationCanceledException"/> if the <see cref="CancellationToken"/> is canceled. 1669/// <exception cref="OperationCanceledException">If the <see cref="CancellationToken"/> is canceled.</exception>
sys\system\threading\Barrier.cs (1)
711catch (OperationCanceledException )
System.Activities (4)
System\Activities\DurableInstancing\PersistenceIOParticipant.cs (1)
22[Fx.Tag.Throws(typeof(OperationCanceledException), "The operation has been aborted. The transaction should be rolled back and the pipeline aborted.")]
System\Activities\WorkflowApplication.cs (3)
5763catch (OperationCanceledException) { } 5781catch (OperationCanceledException) { } 5801catch (OperationCanceledException) { }
System.Activities.Presentation (2)
System.Activities.Presentation\System\Activities\Presentation\Validation\BackgroundValidationSynchronizer.cs (1)
133catch (OperationCanceledException)
System.Activities.Presentation\System\Activities\Presentation\Validation\ValidationService.cs (1)
396if (Fx.IsFatal(e) || e is OperationCanceledException)
System.Core (8)
System\Linq\Parallel\QueryOperators\Inlined\InlinedAggregationOperator.cs (2)
80OperationCanceledException cancelEx = ex as OperationCanceledException;
System\Linq\Parallel\Scheduling\QueryTaskGroupState.cs (2)
121OperationCanceledException oce = flattenedAE.InnerExceptions[i] as OperationCanceledException;
System\Linq\Parallel\Scheduling\SpoolingTaskBase.cs (2)
55OperationCanceledException oce = ex as OperationCanceledException;
System\Linq\Parallel\Utils\ExceptionAggregator.cs (2)
167OperationCanceledException cancelEx = ex as OperationCanceledException;
System.Data (2)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Validation\BackgroundValidationSynchronizer.cs (1)
133catch (OperationCanceledException)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Validation\ValidationService.cs (1)
396if (Fx.IsFatal(e) || e is OperationCanceledException)
System.Runtime.DurableInstancing (8)
System\Runtime\DurableInstancing\InstancePersistenceContext.cs (6)
685[Fx.Tag.Throws(typeof(OperationCanceledException), "The operation was canceled because the InstanceHandle has been freed.")] 706catch (OperationCanceledException) 733catch (OperationCanceledException) 817catch (OperationCanceledException) 835catch (OperationCanceledException) 1567else if (exception is TimeoutException || exception is OperationCanceledException)
System\Runtime\DurableInstancing\InstanceStore.cs (2)
64[Fx.Tag.Throws(typeof(OperationCanceledException), "The operation was canceled; the InstanceHandle is no longer valid.")] 115[Fx.Tag.Throws(typeof(OperationCanceledException), "The operation was canceled; the InstanceHandle is no longer valid.")]
System.ServiceModel (5)
System\ServiceModel\Channels\HttpChannelListener.cs (1)
1209else if (e is OperationCanceledException)
System\ServiceModel\Channels\HttpPipeline.cs (1)
525catch (OperationCanceledException)
System\ServiceModel\Channels\WebSocketHelper.cs (3)
259Exception exception = FxTrace.Exception.AsError<OperationCanceledException>(aggregationException); 260OperationCanceledException operationCanceledException = exception as OperationCanceledException;
System.ServiceModel.Activities (13)
System\ServiceModel\Activities\Dispatcher\ControlOperationInvoker.cs (2)
413catch (OperationCanceledException exception) 497catch (OperationCanceledException exception)
System\ServiceModel\Activities\Dispatcher\DurableInstanceManager.cs (4)
207catch (OperationCanceledException exception) 243exception is OperationCanceledException || 845catch (OperationCanceledException) { } 928catch (OperationCanceledException) { }
System\ServiceModel\Activities\Dispatcher\PersistenceContext.cs (5)
446if (exception is OperationCanceledException) 873catch (OperationCanceledException exception) 1030catch (OperationCanceledException exception) 1170catch (OperationCanceledException exception) 1368catch (OperationCanceledException exception)
System\ServiceModel\Activities\Dispatcher\PersistenceProviderDirectory.cs (2)
138[Fx.Tag.Throws(typeof(OperationCanceledException), "The directory of loaded instances has been aborted. An abrupt shutdown of the service is in progress.")] 1339if (exception is OperationCanceledException)
System.Web (2)
Hosting\BackgroundWorkScheduler.cs (2)
46OperationCanceledException operationCanceledException = ex as OperationCanceledException;
WindowsBase (2)
Base\System\Windows\Threading\Dispatcher.cs (1)
1520catch(OperationCanceledException)
Base\System\Windows\Threading\DispatcherOperation.cs (1)
457if(_exception != null && _exception is OperationCanceledException)