IRegistryTaskRuns.CancelAsync Method

Definition

The function that cancels a task run asynchronously.

public System.Threading.Tasks.Task CancelAsync (string rgName, string acrName, string runId, System.Threading.CancellationToken cancellationToken = default);
abstract member CancelAsync : string * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Function CancelAsync (rgName As String, acrName As String, runId As String, Optional cancellationToken As CancellationToken = Nothing) As Task

Parameters

rgName
System.String

The resource group of the parent registry.

acrName
System.String

The name of the parent registry.

runId
System.String

The id of the task run.

cancellationToken
System.Threading.CancellationToken

Returns

System.Threading.Tasks.Task

Applies to