Partilhar via


CustomLocationResource.UpdateAsync Método

Definição

Atualizações um Local Personalizado com o Nome do Recurso especificado no Grupo de Recursos e assinatura especificados. Caminho da Solicitação: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ExtendedLocation/customLocations/{resourceName} Operation Id: CustomLocations_Update

public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.ExtendedLocation.CustomLocationResource>> UpdateAsync (Azure.ResourceManager.ExtendedLocation.Models.CustomLocationPatch patch, System.Threading.CancellationToken cancellationToken = default);
abstract member UpdateAsync : Azure.ResourceManager.ExtendedLocation.Models.CustomLocationPatch * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.ExtendedLocation.CustomLocationResource>>
override this.UpdateAsync : Azure.ResourceManager.ExtendedLocation.Models.CustomLocationPatch * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.ExtendedLocation.CustomLocationResource>>
Public Overridable Function UpdateAsync (patch As CustomLocationPatch, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of CustomLocationResource))

Parâmetros

patch
CustomLocationPatch

Os campos atualizáveis de um Local Personalizado existente.

cancellationToken
CancellationToken

O token de cancelamento a ser usado.

Retornos

Exceções

patch é nulo.

Aplica-se a