System.Threading.CancellationTokenSource.CreateLinkedTokenSource Method

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

Syntax

public static CancellationTokenSource CreateLinkedTokenSource (CancellationToken token1, CancellationToken token2)

Parameters

token1
The first cancellation token to observe.
token2
The second cancellation token to observe.

Returns

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

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: System.Threading
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 4.0.0.0