C#C++F#VB
CloudQueue.::..ClearAsync Method (CancellationToken)(CancellationToken)(CancellationToken)(CancellationToken)
Initiates an asynchronous operation to clear all messages from the queue.
Assembly: Microsoft.WindowsAzure.Storage (in Microsoft.WindowsAzure.Storage.dll)
Syntax
[DoesServiceRequestAttribute] public virtual Task ClearAsync( CancellationToken cancellationToken )
C++
public: [DoesServiceRequestAttribute] virtual Task^ ClearAsync( CancellationToken cancellationToken )
[<DoesServiceRequestAttribute>] abstract ClearAsync : cancellationToken:CancellationToken -> Task [<DoesServiceRequestAttribute>] override ClearAsync : cancellationToken:CancellationToken -> Task
<DoesServiceRequestAttribute> Public Overridable Function ClearAsync ( cancellationToken As CancellationToken ) As Task
Parameters
- cancellationToken
-
Type:
System.Threading.CancellationTokenSystem.Threading::CancellationTokenSystem.Threading.CancellationTokenSystem.Threading.CancellationToken
A CancellationToken to observe while waiting for a task to complete.
Return Value
Type: System.Threading.Tasks.TaskSystem.Threading.Tasks::Task^System.Threading.Tasks.TaskSystem.Threading.Tasks.TaskA Task object that represents the asynchronous operation.