Compartilhar via


Caches.UpdateWithHttpMessagesAsync Método

Definição

Atualizar uma instância de Cache.

public System.Threading.Tasks.Task<Microsoft.Rest.HttpOperationResponse<Microsoft.Azure.Management.StorageCache.Models.Cache>> UpdateWithHttpMessagesAsync (string resourceGroupName, string cacheName, Microsoft.Azure.Management.StorageCache.Models.Cache cache = default, System.Collections.Generic.Dictionary<string,System.Collections.Generic.List<string>> customHeaders = default, System.Threading.CancellationToken cancellationToken = default);
abstract member UpdateWithHttpMessagesAsync : string * string * Microsoft.Azure.Management.StorageCache.Models.Cache * System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.HttpOperationResponse<Microsoft.Azure.Management.StorageCache.Models.Cache>>
override this.UpdateWithHttpMessagesAsync : string * string * Microsoft.Azure.Management.StorageCache.Models.Cache * System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.HttpOperationResponse<Microsoft.Azure.Management.StorageCache.Models.Cache>>
Public Function UpdateWithHttpMessagesAsync (resourceGroupName As String, cacheName As String, Optional cache As Cache = Nothing, Optional customHeaders As Dictionary(Of String, List(Of String)) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of HttpOperationResponse(Of Cache))

Parâmetros

resourceGroupName
String

Grupo de recursos de destino.

cacheName
String

Nome do Cache. O comprimento do nome não deve ser maior que 80 e os caracteres devem ser da classe char [-0-9a-zA-Z_].

cache
Cache

Objeto que contém as propriedades selecionáveis pelo usuário do Cache. Se as propriedades somente leitura forem incluídas, elas deverão corresponder aos valores existentes dessas propriedades.

customHeaders
Dictionary<String,List<String>>

Cabeçalhos que serão adicionados à solicitação.

cancellationToken
CancellationToken

O token de cancelamento.

Retornos

Implementações

Exceções

Gerada quando a operação retornou um código de status inválido

Gerada quando não é possível desserializar a resposta

Gerado quando um parâmetro necessário é nulo

Gerado quando um parâmetro necessário é nulo

Aplica-se a