你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

CloudQueue.DeleteMessageAsync 方法

定义

重载

DeleteMessageAsync(String, String, QueueRequestOptions, OperationContext)

启动异步操作以删除消息。

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

启动异步操作以删除消息。

DeleteMessageAsync(String, String, CancellationToken)

启动异步操作以删除消息。

DeleteMessageAsync(CloudQueueMessage, QueueRequestOptions, OperationContext, CancellationToken)

启动异步操作以删除消息。

DeleteMessageAsync(String, String)

启动异步操作以删除消息。

DeleteMessageAsync(CloudQueueMessage)

启动异步操作以删除消息。

DeleteMessageAsync(CloudQueueMessage, QueueRequestOptions, OperationContext)

启动异步操作以删除消息。

DeleteMessageAsync(CloudQueueMessage, CancellationToken)

启动异步操作以删除消息。

DeleteMessageAsync(String, String, QueueRequestOptions, OperationContext)

启动异步操作以删除消息。

[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

参数

messageId
String

指定消息 ID 的字符串。

popReceipt
String

一个指定流行回执值的字符串。

options
QueueRequestOptions

一个 QueueRequestOptions 对象,它指定请求的其他选项。

operationContext
OperationContext

一个 OperationContext 对象,它一个表示当前操作的上下文。

返回

表示异步操作的 Task 对象。

属性

适用于

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

启动异步操作以删除消息。

[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

参数

messageId
String

指定消息 ID 的字符串。

popReceipt
String

一个指定流行回执值的字符串。

options
QueueRequestOptions

一个 QueueRequestOptions 对象,它指定请求的其他选项。

operationContext
OperationContext

一个 OperationContext 对象,它一个表示当前操作的上下文。

cancellationToken
CancellationToken

等待任务完成期间要观察的 CancellationToken

返回

表示异步操作的 Task 对象。

属性

适用于

DeleteMessageAsync(String, String, CancellationToken)

启动异步操作以删除消息。

[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

参数

messageId
String

指定消息 ID 的字符串。

popReceipt
String

一个指定流行回执值的字符串。

cancellationToken
CancellationToken

等待任务完成期间要观察的 CancellationToken

返回

表示异步操作的 Task 对象。

属性

适用于

DeleteMessageAsync(CloudQueueMessage, QueueRequestOptions, OperationContext, CancellationToken)

启动异步操作以删除消息。

[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

参数

options
QueueRequestOptions

一个 QueueRequestOptions 对象,它指定请求的其他选项。

operationContext
OperationContext

一个 OperationContext 对象,它一个表示当前操作的上下文。

cancellationToken
CancellationToken

等待任务完成期间要观察的 CancellationToken

返回

表示异步操作的 Task 对象。

属性

适用于

DeleteMessageAsync(String, String)

启动异步操作以删除消息。

[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

参数

messageId
String

指定消息 ID 的字符串。

popReceipt
String

一个指定流行回执值的字符串。

返回

表示异步操作的 Task 对象。

属性

适用于

DeleteMessageAsync(CloudQueueMessage)

启动异步操作以删除消息。

[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

参数

返回

表示异步操作的 Task 对象。

属性

适用于

DeleteMessageAsync(CloudQueueMessage, QueueRequestOptions, OperationContext)

启动异步操作以删除消息。

[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

参数

options
QueueRequestOptions

一个 QueueRequestOptions 对象,它指定请求的其他选项。

operationContext
OperationContext

一个 OperationContext 对象,它一个表示当前操作的上下文。

返回

表示异步操作的 Task 对象。

属性

适用于

DeleteMessageAsync(CloudQueueMessage, CancellationToken)

启动异步操作以删除消息。

[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

参数

cancellationToken
CancellationToken

等待任务完成期间要观察的 CancellationToken

返回

表示异步操作的 Task 对象。

属性

适用于