The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.
This topic has not yet been rated - Rate this topic

CancellationTokenSource.CreateLinkedTokenSource Method (CancellationToken[])

Creates a CancellationTokenSource that will be in the canceled state when any of the source tokens are in the canceled state.

Namespace:  System.Threading
Assembly:  mscorlib (in mscorlib.dll)
public static CancellationTokenSource CreateLinkedTokenSource(
	params CancellationToken[] tokens


Type: System.Threading.CancellationToken[]
The CancellationToken instances to observe.

Return Value

Type: System.Threading.CancellationTokenSource
A CancellationTokenSource that is linked to the source tokens.

A CancellationTokenSource associated with one of the source tokens has been disposed.


tokens is null.


If any of the tokens cannot be canceled, they will not be linked. The returned source will be cancelable.


If any of the tokens are already canceled then the linked token will be returned in canceled state.


Supported in: 5

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

© 2014 Microsoft. All rights reserved.