Udostępnij za pośrednictwem


QueueOperationsExtensions.CreateAsync Method

Definition

Creates a new queue with the specified queue name, under the specified account.

public static System.Threading.Tasks.Task<Microsoft.Azure.Management.Storage.Models.StorageQueue> CreateAsync (this Microsoft.Azure.Management.Storage.IQueueOperations operations, string resourceGroupName, string accountName, string queueName, System.Collections.Generic.IDictionary<string,string> metadata = default, System.Threading.CancellationToken cancellationToken = default);
static member CreateAsync : Microsoft.Azure.Management.Storage.IQueueOperations * string * string * string * System.Collections.Generic.IDictionary<string, string> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.Storage.Models.StorageQueue>
<Extension()>
Public Function CreateAsync (operations As IQueueOperations, resourceGroupName As String, accountName As String, queueName As String, Optional metadata As IDictionary(Of String, String) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of StorageQueue)

Parameters

operations
IQueueOperations

The operations group for this extension method.

resourceGroupName
String

The name of the resource group within the user's subscription. The name is case insensitive.

accountName
String

The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only.

queueName
String

A queue name must be unique within a storage account and must be between 3 and 63 characters.The name must comprise of lowercase alphanumeric and dash(-) characters only, it should begin and end with an alphanumeric character and it cannot have two consecutive dash(-) characters.

metadata
IDictionary<String,String>

A name-value pair that represents queue metadata.

cancellationToken
CancellationToken

The cancellation token.

Returns

Applies to