Compartilhar via


ServiceClient.PurgeMessageQueueAsync(String, CancellationToken) Método

Definição

Remove todas as mensagens da nuvem para o dispositivo da fila de um dispositivo. Essa chamada é feita por HTTP.

public virtual System.Threading.Tasks.Task<Microsoft.Azure.Devices.PurgeMessageQueueResult> PurgeMessageQueueAsync (string deviceId, System.Threading.CancellationToken cancellationToken = default);
abstract member PurgeMessageQueueAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Devices.PurgeMessageQueueResult>
override this.PurgeMessageQueueAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Devices.PurgeMessageQueueResult>
Public Overridable Function PurgeMessageQueueAsync (deviceId As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of PurgeMessageQueueResult)

Parâmetros

deviceId
String

O identificador do dispositivo de destino.

cancellationToken
CancellationToken

Um token de cancelamento para cancelar a operação.

Retornos

Aplica-se a