Compartir a través de


StorageTargets.DeleteWithHttpMessagesAsync Método

Definición

Quita un destino de almacenamiento de una memoria caché. Esta operación se permite en cualquier momento, pero si la memoria caché está inactiva o está en mal estado, la eliminación real del destino de almacenamiento puede retrasarse hasta que la memoria caché vuelva a estar en buen estado. Tenga en cuenta que si la memoria caché tiene datos que se van a vaciar en el destino de almacenamiento, los datos se vaciarán antes de que se elimine el destino de almacenamiento.

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

Parámetros

resourceGroupName
String

Grupo de recursos de destino.

cacheName
String

Nombre de caché. La longitud del nombre no debe ser mayor que 80 y chars debe ser de la clase char [-0-9a-zA-Z_].

storageTargetName
String

Nombre del destino de almacenamiento.

customHeaders
Dictionary<String,List<String>>

Encabezados que se agregarán a la solicitud.

cancellationToken
CancellationToken

Token de cancelación.

Devoluciones

Implementaciones

Excepciones

Se produce cuando no se puede deserializar la respuesta

Se produce cuando la operación devolvió un código de estado no válido

Se produce cuando un parámetro obligatorio es NULL

Se produce cuando un parámetro obligatorio es NULL

Se aplica a