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

CloudQueue.CreateIfNotExistsAsync 方法

定义

重载

CreateIfNotExistsAsync(QueueRequestOptions, OperationContext, CancellationToken)

启动异步操作以创建队列(如果队列尚不存在)。

CreateIfNotExistsAsync(QueueRequestOptions, OperationContext)

启动异步操作以创建队列(如果队列尚不存在)。

CreateIfNotExistsAsync()

启动异步操作以创建队列(如果队列尚不存在)。

CreateIfNotExistsAsync(CancellationToken)

启动异步操作以创建队列(如果队列尚不存在)。

CreateIfNotExistsAsync(QueueRequestOptions, OperationContext, CancellationToken)

启动异步操作以创建队列(如果队列尚不存在)。

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

参数

options
QueueRequestOptions

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

operationContext
OperationContext

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

cancellationToken
CancellationToken

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

返回

表示异步操作的 bool 类型的 Task<TResult> 对象。

属性

注解

此 API 需要“创建”或“写入”权限。

适用于

CreateIfNotExistsAsync(QueueRequestOptions, OperationContext)

启动异步操作以创建队列(如果队列尚不存在)。

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

参数

options
QueueRequestOptions

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

operationContext
OperationContext

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

返回

表示异步操作的 bool 类型的 Task<TResult> 对象。

属性

注解

此 API 需要“创建”或“写入”权限。

适用于

CreateIfNotExistsAsync()

启动异步操作以创建队列(如果队列尚不存在)。

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

返回

表示异步操作的 bool 类型的 Task<TResult> 对象。

属性

注解

此 API 需要“创建”或“写入”权限。

适用于

CreateIfNotExistsAsync(CancellationToken)

启动异步操作以创建队列(如果队列尚不存在)。

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

参数

cancellationToken
CancellationToken

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

返回

表示异步操作的 bool 类型的 Task<TResult> 对象。

属性

注解

此 API 需要“创建”或“写入”权限。

适用于