CancellationTokenSource.CreateLinkedTokenSource CancellationTokenSource.CreateLinkedTokenSource CancellationTokenSource.CreateLinkedTokenSource CancellationTokenSource.CreateLinkedTokenSource Method

Definition

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

Overloads

CreateLinkedTokenSource(CancellationToken[]) CreateLinkedTokenSource(CancellationToken[]) CreateLinkedTokenSource(CancellationToken[]) CreateLinkedTokenSource(CancellationToken[])

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

CreateLinkedTokenSource(CancellationToken, CancellationToken) CreateLinkedTokenSource(CancellationToken, CancellationToken) CreateLinkedTokenSource(CancellationToken, CancellationToken) CreateLinkedTokenSource(CancellationToken, CancellationToken)

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

CreateLinkedTokenSource(CancellationToken[]) CreateLinkedTokenSource(CancellationToken[]) CreateLinkedTokenSource(CancellationToken[]) CreateLinkedTokenSource(CancellationToken[])

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

public:
 static System::Threading::CancellationTokenSource ^ CreateLinkedTokenSource(... cli::array <System::Threading::CancellationToken> ^ tokens);
public static System.Threading.CancellationTokenSource CreateLinkedTokenSource (params System.Threading.CancellationToken[] tokens);
static member CreateLinkedTokenSource : System.Threading.CancellationToken[] -> System.Threading.CancellationTokenSource
Public Shared Function CreateLinkedTokenSource (ParamArray tokens As CancellationToken()) As CancellationTokenSource

Parameters

tokens
CancellationToken[]

An array that contains the cancellation token instances to observe.

Returns

Exceptions

See also

CreateLinkedTokenSource(CancellationToken, CancellationToken) CreateLinkedTokenSource(CancellationToken, CancellationToken) CreateLinkedTokenSource(CancellationToken, CancellationToken) CreateLinkedTokenSource(CancellationToken, CancellationToken)

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

public:
 static System::Threading::CancellationTokenSource ^ CreateLinkedTokenSource(System::Threading::CancellationToken token1, System::Threading::CancellationToken token2);
public static System.Threading.CancellationTokenSource CreateLinkedTokenSource (System.Threading.CancellationToken token1, System.Threading.CancellationToken token2);
static member CreateLinkedTokenSource : System.Threading.CancellationToken * System.Threading.CancellationToken -> System.Threading.CancellationTokenSource
Public Shared Function CreateLinkedTokenSource (token1 As CancellationToken, token2 As CancellationToken) As CancellationTokenSource

Parameters

token1
CancellationToken CancellationToken CancellationToken CancellationToken

The first cancellation token to observe.

token2
CancellationToken CancellationToken CancellationToken CancellationToken

The second cancellation token to observe.

Returns

Exceptions

See also

Applies to