共用方式為


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
String

The resource group of the parent registry.

acrName
String

The name of the parent registry.

runId
String

The id of the task run.

cancellationToken
CancellationToken

Returns

Applies to