Share via


ContainerRegistryTaskResource.Update Method

Definition

Updates a task with the specified parameters.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/tasks/{taskName}
  • Operation Id: Tasks_Update
  • Default Api Version: 2025-03-01-preview
  • Resource: ContainerRegistryTaskResource
public virtual Azure.Response<Azure.ResourceManager.ContainerRegistry.ContainerRegistryTaskResource> Update(Azure.ResourceManager.ContainerRegistry.Models.ContainerRegistryTaskPatch patch, System.Threading.CancellationToken cancellationToken = default);
abstract member Update : Azure.ResourceManager.ContainerRegistry.Models.ContainerRegistryTaskPatch * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.ContainerRegistry.ContainerRegistryTaskResource>
override this.Update : Azure.ResourceManager.ContainerRegistry.Models.ContainerRegistryTaskPatch * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.ContainerRegistry.ContainerRegistryTaskResource>
Public Overridable Function Update (patch As ContainerRegistryTaskPatch, Optional cancellationToken As CancellationToken = Nothing) As Response(Of ContainerRegistryTaskResource)

Parameters

patch
ContainerRegistryTaskPatch

The parameters for updating a task.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

patch is null.

Applies to