IBuildCancellationAwareHostObject.SetCancellationToken Method

Definition

Set the build cancellation token that the host object can use for cancelling operations when build is cancelled.

public void SetCancellationToken (System.Threading.CancellationToken cancellationToken);
abstract member SetCancellationToken : System.Threading.CancellationToken -> unit
Public Sub SetCancellationToken (cancellationToken As CancellationToken)

Parameters

cancellationToken
CancellationToken

The cancellation token to use.

Applies to