Udostępnij za pośrednictwem


CancellationTokenExtensions.CombinedCancellationToken Constructors

Definition

Overloads

CancellationTokenExtensions.CombinedCancellationToken(CancellationToken)

Initializes a new instance of the CancellationTokenExtensions.CombinedCancellationToken struct that represents just a single, non-disposable CancellationToken.

CancellationTokenExtensions.CombinedCancellationToken(CancellationTokenSource)

Initializes a new instance of the CancellationTokenExtensions.CombinedCancellationToken struct that contains an aggregate CancellationToken whose source must be disposed.

CancellationTokenExtensions.CombinedCancellationToken(CancellationToken)

Initializes a new instance of the CancellationTokenExtensions.CombinedCancellationToken struct that represents just a single, non-disposable CancellationToken.

public:
 CombinedCancellationToken(System::Threading::CancellationToken cancellationToken);
public CombinedCancellationToken (System.Threading.CancellationToken cancellationToken);
new Microsoft.VisualStudio.Threading.CancellationTokenExtensions.CombinedCancellationToken : System.Threading.CancellationToken -> Microsoft.VisualStudio.Threading.CancellationTokenExtensions.CombinedCancellationToken
Public Sub New (cancellationToken As CancellationToken)

Parameters

cancellationToken
CancellationToken

The cancellation token.

Applies to

CancellationTokenExtensions.CombinedCancellationToken(CancellationTokenSource)

Initializes a new instance of the CancellationTokenExtensions.CombinedCancellationToken struct that contains an aggregate CancellationToken whose source must be disposed.

public:
 CombinedCancellationToken(System::Threading::CancellationTokenSource ^ cancellationTokenSource);
public CombinedCancellationToken (System.Threading.CancellationTokenSource cancellationTokenSource);
new Microsoft.VisualStudio.Threading.CancellationTokenExtensions.CombinedCancellationToken : System.Threading.CancellationTokenSource -> Microsoft.VisualStudio.Threading.CancellationTokenExtensions.CombinedCancellationToken
Public Sub New (cancellationTokenSource As CancellationTokenSource)

Parameters

cancellationTokenSource
CancellationTokenSource

The cancellation token source.

Applies to