Sdílet prostřednictvím


CloudQueue.ClearAsync Method

Definition

Overloads

ClearAsync(QueueRequestOptions, OperationContext, CancellationToken)

Initiates an asynchronous operation to clear all messages from the queue.

ClearAsync(QueueRequestOptions, OperationContext)

Initiates an asynchronous operation to clear all messages from the queue.

ClearAsync()

Initiates an asynchronous operation to clear all messages from the queue.

ClearAsync(CancellationToken)

Initiates an asynchronous operation to clear all messages from the queue.

ClearAsync(QueueRequestOptions, OperationContext, CancellationToken)

Initiates an asynchronous operation to clear all messages from the queue.

[Microsoft.Azure.Storage.DoesServiceRequest]
public virtual System.Threading.Tasks.Task ClearAsync (Microsoft.Azure.Storage.Queue.QueueRequestOptions options, Microsoft.Azure.Storage.OperationContext operationContext, System.Threading.CancellationToken cancellationToken);
[<Microsoft.Azure.Storage.DoesServiceRequest>]
abstract member ClearAsync : Microsoft.Azure.Storage.Queue.QueueRequestOptions * Microsoft.Azure.Storage.OperationContext * System.Threading.CancellationToken -> System.Threading.Tasks.Task
override this.ClearAsync : Microsoft.Azure.Storage.Queue.QueueRequestOptions * Microsoft.Azure.Storage.OperationContext * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Overridable Function ClearAsync (options As QueueRequestOptions, operationContext As OperationContext, cancellationToken As CancellationToken) As Task

Parameters

options
QueueRequestOptions

A QueueRequestOptions object that specifies additional options for the request.

operationContext
OperationContext

An OperationContext object that represents the context for the current operation.

cancellationToken
CancellationToken

A CancellationToken to observe while waiting for a task to complete.

Returns

A Task object that represents the asynchronous operation.

Attributes

Applies to

ClearAsync(QueueRequestOptions, OperationContext)

Initiates an asynchronous operation to clear all messages from the queue.

[Microsoft.Azure.Storage.DoesServiceRequest]
public virtual System.Threading.Tasks.Task ClearAsync (Microsoft.Azure.Storage.Queue.QueueRequestOptions options, Microsoft.Azure.Storage.OperationContext operationContext);
[<Microsoft.Azure.Storage.DoesServiceRequest>]
abstract member ClearAsync : Microsoft.Azure.Storage.Queue.QueueRequestOptions * Microsoft.Azure.Storage.OperationContext -> System.Threading.Tasks.Task
override this.ClearAsync : Microsoft.Azure.Storage.Queue.QueueRequestOptions * Microsoft.Azure.Storage.OperationContext -> System.Threading.Tasks.Task
Public Overridable Function ClearAsync (options As QueueRequestOptions, operationContext As OperationContext) As Task

Parameters

options
QueueRequestOptions

A QueueRequestOptions object that specifies additional options for the request.

operationContext
OperationContext

An OperationContext object that represents the context for the current operation.

Returns

A Task object that represents the asynchronous operation.

Attributes

Applies to

ClearAsync()

Initiates an asynchronous operation to clear all messages from the queue.

[Microsoft.Azure.Storage.DoesServiceRequest]
public virtual System.Threading.Tasks.Task ClearAsync ();
[<Microsoft.Azure.Storage.DoesServiceRequest>]
abstract member ClearAsync : unit -> System.Threading.Tasks.Task
override this.ClearAsync : unit -> System.Threading.Tasks.Task
Public Overridable Function ClearAsync () As Task

Returns

A Task object that represents the asynchronous operation.

Attributes

Applies to

ClearAsync(CancellationToken)

Initiates an asynchronous operation to clear all messages from the queue.

[Microsoft.Azure.Storage.DoesServiceRequest]
public virtual System.Threading.Tasks.Task ClearAsync (System.Threading.CancellationToken cancellationToken);
[<Microsoft.Azure.Storage.DoesServiceRequest>]
abstract member ClearAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task
override this.ClearAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Overridable Function ClearAsync (cancellationToken As CancellationToken) As Task

Parameters

cancellationToken
CancellationToken

A CancellationToken to observe while waiting for a task to complete.

Returns

A Task object that represents the asynchronous operation.

Attributes

Applies to