CloudQueue.CreateIfNotExistsAsync CloudQueue.CreateIfNotExistsAsync CloudQueue.CreateIfNotExistsAsync Method

Definition

Overloads

CreateIfNotExistsAsync(QueueRequestOptions, OperationContext, CancellationToken) CreateIfNotExistsAsync(QueueRequestOptions, OperationContext, CancellationToken)

Initiates an asynchronous operation to create the queue if it does not already exist.

CreateIfNotExistsAsync(QueueRequestOptions, OperationContext) CreateIfNotExistsAsync(QueueRequestOptions, OperationContext)

Initiates an asynchronous operation to create the queue if it does not already exist.

CreateIfNotExistsAsync() CreateIfNotExistsAsync() CreateIfNotExistsAsync()

Initiates an asynchronous operation to create the queue if it does not already exist.

CreateIfNotExistsAsync(CancellationToken) CreateIfNotExistsAsync(CancellationToken)

Initiates an asynchronous operation to create the queue if it does not already exist.

CreateIfNotExistsAsync(QueueRequestOptions, OperationContext, CancellationToken) CreateIfNotExistsAsync(QueueRequestOptions, OperationContext, CancellationToken)

Initiates an asynchronous operation to create the queue if it does not already exist.

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

Parameters

options
QueueRequestOptions QueueRequestOptions QueueRequestOptions

A QueueRequestOptions object that specifies additional options for the request.

operationContext
OperationContext OperationContext OperationContext

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

cancellationToken
CancellationToken CancellationToken CancellationToken

A CancellationToken to observe while waiting for a task to complete.

Returns

A Task<TResult> object of type bool that represents the asynchronous operation.

Remarks

This API requires Create or Write permissions.

CreateIfNotExistsAsync(QueueRequestOptions, OperationContext) CreateIfNotExistsAsync(QueueRequestOptions, OperationContext)

Initiates an asynchronous operation to create the queue if it does not already exist.

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

Parameters

options
QueueRequestOptions QueueRequestOptions QueueRequestOptions

A QueueRequestOptions object that specifies additional options for the request.

operationContext
OperationContext OperationContext OperationContext

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

Returns

A Task<TResult> object of type bool that represents the asynchronous operation.

Remarks

This API requires Create or Write permissions.

CreateIfNotExistsAsync() CreateIfNotExistsAsync() CreateIfNotExistsAsync()

Initiates an asynchronous operation to create the queue if it does not already exist.

[Microsoft.WindowsAzure.Storage.DoesServiceRequest]
public virtual System.Threading.Tasks.Task<bool> CreateIfNotExistsAsync ();
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)

Returns

A Task<TResult> object of type bool that represents the asynchronous operation.

Remarks

This API requires Create or Write permissions.

CreateIfNotExistsAsync(CancellationToken) CreateIfNotExistsAsync(CancellationToken)

Initiates an asynchronous operation to create the queue if it does not already exist.

[Microsoft.WindowsAzure.Storage.DoesServiceRequest]
public virtual System.Threading.Tasks.Task<bool> CreateIfNotExistsAsync (System.Threading.CancellationToken cancellationToken);
abstract member CreateIfNotExistsAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task<bool>
override this.CreateIfNotExistsAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task<bool>

Parameters

cancellationToken
CancellationToken CancellationToken CancellationToken

A CancellationToken to observe while waiting for a task to complete.

Returns

A Task<TResult> object of type bool that represents the asynchronous operation.

Remarks

This API requires Create or Write permissions.

Applies to