Udostępnij za pośrednictwem


CloudQueue.DeleteMessageAsync Method

Definition

Overloads

DeleteMessageAsync(String, String, QueueRequestOptions, OperationContext)

Initiates an asynchronous operation to delete a message.

DeleteMessageAsync(String, String, QueueRequestOptions, OperationContext, CancellationToken)

Initiates an asynchronous operation to delete a message.

DeleteMessageAsync(String, String, CancellationToken)

Initiates an asynchronous operation to delete a message.

DeleteMessageAsync(CloudQueueMessage, QueueRequestOptions, OperationContext, CancellationToken)

Initiates an asynchronous operation to delete a message.

DeleteMessageAsync(String, String)

Initiates an asynchronous operation to delete a message.

DeleteMessageAsync(CloudQueueMessage)

Initiates an asynchronous operation to delete a message.

DeleteMessageAsync(CloudQueueMessage, QueueRequestOptions, OperationContext)

Initiates an asynchronous operation to delete a message.

DeleteMessageAsync(CloudQueueMessage, CancellationToken)

Initiates an asynchronous operation to delete a message.

DeleteMessageAsync(String, String, QueueRequestOptions, OperationContext)

Initiates an asynchronous operation to delete a message.

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

Parameters

messageId
String

A string specifying the message ID.

popReceipt
String

A string specifying the pop receipt value.

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

DeleteMessageAsync(String, String, QueueRequestOptions, OperationContext, CancellationToken)

Initiates an asynchronous operation to delete a message.

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

Parameters

messageId
String

A string specifying the message ID.

popReceipt
String

A string specifying the pop receipt value.

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

DeleteMessageAsync(String, String, CancellationToken)

Initiates an asynchronous operation to delete a message.

[Microsoft.Azure.Storage.DoesServiceRequest]
public virtual System.Threading.Tasks.Task DeleteMessageAsync (string messageId, string popReceipt, System.Threading.CancellationToken cancellationToken);
[<Microsoft.Azure.Storage.DoesServiceRequest>]
abstract member DeleteMessageAsync : string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task
override this.DeleteMessageAsync : string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Overridable Function DeleteMessageAsync (messageId As String, popReceipt As String, cancellationToken As CancellationToken) As Task

Parameters

messageId
String

A string specifying the message ID.

popReceipt
String

A string specifying the pop receipt value.

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

DeleteMessageAsync(CloudQueueMessage, QueueRequestOptions, OperationContext, CancellationToken)

Initiates an asynchronous operation to delete a message.

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

DeleteMessageAsync(String, String)

Initiates an asynchronous operation to delete a message.

[Microsoft.Azure.Storage.DoesServiceRequest]
public virtual System.Threading.Tasks.Task DeleteMessageAsync (string messageId, string popReceipt);
[<Microsoft.Azure.Storage.DoesServiceRequest>]
abstract member DeleteMessageAsync : string * string -> System.Threading.Tasks.Task
override this.DeleteMessageAsync : string * string -> System.Threading.Tasks.Task
Public Overridable Function DeleteMessageAsync (messageId As String, popReceipt As String) As Task

Parameters

messageId
String

A string specifying the message ID.

popReceipt
String

A string specifying the pop receipt value.

Returns

A Task object that represents the asynchronous operation.

Attributes

Applies to

DeleteMessageAsync(CloudQueueMessage)

Initiates an asynchronous operation to delete a message.

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

Parameters

Returns

A Task object that represents the asynchronous operation.

Attributes

Applies to

DeleteMessageAsync(CloudQueueMessage, QueueRequestOptions, OperationContext)

Initiates an asynchronous operation to delete a message.

[Microsoft.Azure.Storage.DoesServiceRequest]
public virtual System.Threading.Tasks.Task DeleteMessageAsync (Microsoft.Azure.Storage.Queue.CloudQueueMessage message, Microsoft.Azure.Storage.Queue.QueueRequestOptions options, Microsoft.Azure.Storage.OperationContext operationContext);
[<Microsoft.Azure.Storage.DoesServiceRequest>]
abstract member DeleteMessageAsync : Microsoft.Azure.Storage.Queue.CloudQueueMessage * Microsoft.Azure.Storage.Queue.QueueRequestOptions * Microsoft.Azure.Storage.OperationContext -> System.Threading.Tasks.Task
override this.DeleteMessageAsync : Microsoft.Azure.Storage.Queue.CloudQueueMessage * Microsoft.Azure.Storage.Queue.QueueRequestOptions * Microsoft.Azure.Storage.OperationContext -> System.Threading.Tasks.Task
Public Overridable Function DeleteMessageAsync (message As CloudQueueMessage, 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

DeleteMessageAsync(CloudQueueMessage, CancellationToken)

Initiates an asynchronous operation to delete a message.

[Microsoft.Azure.Storage.DoesServiceRequest]
public virtual System.Threading.Tasks.Task DeleteMessageAsync (Microsoft.Azure.Storage.Queue.CloudQueueMessage message, System.Threading.CancellationToken cancellationToken);
[<Microsoft.Azure.Storage.DoesServiceRequest>]
abstract member DeleteMessageAsync : Microsoft.Azure.Storage.Queue.CloudQueueMessage * System.Threading.CancellationToken -> System.Threading.Tasks.Task
override this.DeleteMessageAsync : Microsoft.Azure.Storage.Queue.CloudQueueMessage * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Overridable Function DeleteMessageAsync (message As CloudQueueMessage, 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