CloudQueue.Clear(QueueRequestOptions, OperationContext) Method

Definition

Clears all messages from the queue.

[Microsoft.Azure.Storage.DoesServiceRequest]
public virtual void Clear (Microsoft.Azure.Storage.Queue.QueueRequestOptions options = default, Microsoft.Azure.Storage.OperationContext operationContext = default);
[<Microsoft.Azure.Storage.DoesServiceRequest>]
abstract member Clear : Microsoft.Azure.Storage.Queue.QueueRequestOptions * Microsoft.Azure.Storage.OperationContext -> unit
override this.Clear : Microsoft.Azure.Storage.Queue.QueueRequestOptions * Microsoft.Azure.Storage.OperationContext -> unit
Public Overridable Sub Clear (Optional options As QueueRequestOptions = Nothing, Optional operationContext As OperationContext = Nothing)

Parameters

options
QueueRequestOptions

A QueueRequestOptions object that specifies additional options for the request. If null, default options are applied to the request.

operationContext
OperationContext

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

Attributes

Applies to