IQueueOperations.CreateAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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 System.Threading.Tasks.Task<Microsoft.WindowsAzure.Management.ServiceBus.Models.ServiceBusQueueResponse> CreateAsync (string namespaceName, Microsoft.WindowsAzure.Management.ServiceBus.Models.ServiceBusQueueCreateParameters queue, System.Threading.CancellationToken cancellationToken);
abstract member CreateAsync : string * Microsoft.WindowsAzure.Management.ServiceBus.Models.ServiceBusQueueCreateParameters * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.WindowsAzure.Management.ServiceBus.Models.ServiceBusQueueResponse>
Public Function CreateAsync (namespaceName As String, queue As ServiceBusQueueCreateParameters, cancellationToken As CancellationToken) As Task(Of ServiceBusQueueResponse)
Parameters
- namespaceName
- String
The namespace name.
The service bus queue.
- cancellationToken
- CancellationToken
Cancellation token.
Returns
A response to a request for a particular queue.
Applies to
Azure SDK for .NET