Naming Queues and Metadata
Обновлено: Ноябрь 2010 г.
Queues are organized by storage account. A URI to refer to a queue includes the account name and the queue name, as follows:
http://myaccount.queue.core.windows.net/myqueue
The URI to reference a queue must be unique. Because every account name is unique, two accounts can have queues with the same name. However, within an account, every queue must have a unique name.
All queues are created beneath the storage account; it's not possible to nest queues.
Queue Names
The queue name must be a valid DNS name, conforming to the following naming rules:
-
A queue name must start with a letter or number, and may contain only letters, numbers, and the dash (-) character.
-
The first and last letters in the queue name must be alphanumeric. The dash (-) character may not be the first or last letter. Consecutive dash characters are not permitted in the queue name; every dash character must be immediately preceded and followed by a letter or number.
-
All letters in a queue name must be lowercase.
-
A queue name must be from 3 through 63 characters long.
Metadata Names
Metadata for a queue resource is stored as a name-value pair associated with the resource. Beginning with version 2009-09-19, metadata names must adhere to the naming rules for C# identifiers.
Existing metadata names that do not adhere to these naming rules can be used with earlier versions of the Queue service, but not with version 2009-09-19 or later.
Note that metadata names preserve the case with which they were created, but are case-insensitive when set or read. If two or more metadata headers with the same name are submitted for a resource, the Queue service returns status code 400 (Bad Request).
См. также