Dela via


QueueOperationsExtensions.CreateAsync Method

Definition

Creates a new queue. Once created, this queue's resource manifest is immutable. This operation is idempotent. Repeating the create call, after a queue with same name has been created successfully, will result in a 409 Conflict error message. (see http://msdn.microsoft.com/en-us/library/windowsazure/jj856295.aspx for more information)

public static System.Threading.Tasks.Task<Microsoft.WindowsAzure.Management.ServiceBus.Models.ServiceBusQueueResponse> CreateAsync (this Microsoft.WindowsAzure.Management.ServiceBus.IQueueOperations operations, string namespaceName, Microsoft.WindowsAzure.Management.ServiceBus.Models.ServiceBusQueueCreateParameters queue);
static member CreateAsync : Microsoft.WindowsAzure.Management.ServiceBus.IQueueOperations * string * Microsoft.WindowsAzure.Management.ServiceBus.Models.ServiceBusQueueCreateParameters -> System.Threading.Tasks.Task<Microsoft.WindowsAzure.Management.ServiceBus.Models.ServiceBusQueueResponse>
<Extension()>
Public Function CreateAsync (operations As IQueueOperations, namespaceName As String, queue As ServiceBusQueueCreateParameters) As Task(Of ServiceBusQueueResponse)

Parameters

operations
IQueueOperations

Reference to the Microsoft.WindowsAzure.Management.ServiceBus.IQueueOperations.

namespaceName
String

Required. The namespace name.

queue
ServiceBusQueueCreateParameters

Required. The service bus queue.

Returns

A response to a request for a particular queue.

Applies to