通过


你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

Queue class

表示队列的类。

构造函数

Queue(StorageManagementClientContext)

创建队列。

方法

create(string, string, string, Models.QueueCreateOptionalParams)

在指定的帐户下创建具有指定队列名称的新队列。

create(string, string, string, QueueCreateOptionalParams, ServiceCallback<StorageQueue>)
create(string, string, string, ServiceCallback<StorageQueue>)
deleteMethod(string, string, string, msRest.RequestOptionsBase)

删除具有指定队列名称的队列(如果存在)下的指定帐户。

deleteMethod(string, string, string, RequestOptionsBase, ServiceCallback<void>)
deleteMethod(string, string, string, ServiceCallback<void>)
get(string, string, string, msRest.RequestOptionsBase)

获取具有指定队列名称的队列(如果存在)下的指定帐户。

get(string, string, string, RequestOptionsBase, ServiceCallback<StorageQueue>)
get(string, string, string, ServiceCallback<StorageQueue>)
list(string, string, Models.QueueListOptionalParams)

获取指定存储帐户下的所有队列的列表

list(string, string, QueueListOptionalParams, ServiceCallback<ListQueueResource>)
list(string, string, ServiceCallback<ListQueueResource>)
listNext(string, Models.QueueListNextOptionalParams)

获取指定存储帐户下的所有队列的列表

listNext(string, QueueListNextOptionalParams, ServiceCallback<ListQueueResource>)
listNext(string, ServiceCallback<ListQueueResource>)
update(string, string, string, Models.QueueUpdateOptionalParams)

在指定的帐户下创建具有指定队列名称的新队列。

update(string, string, string, QueueUpdateOptionalParams, ServiceCallback<StorageQueue>)
update(string, string, string, ServiceCallback<StorageQueue>)

构造函数详细信息

Queue(StorageManagementClientContext)

创建队列。

new Queue(client: StorageManagementClientContext)

参数

client
StorageManagementClientContext

对服务客户端的引用。

方法详细信息

create(string, string, string, Models.QueueCreateOptionalParams)

在指定的帐户下创建具有指定队列名称的新队列。

function create(resourceGroupName: string, accountName: string, queueName: string, options?: Models.QueueCreateOptionalParams)

参数

resourceGroupName

string

用户订阅中的资源组的名称。 名称不区分大小写。

accountName

string

指定资源组中的存储帐户的名称。 存储帐户名称长度必须介于 3 到 24 个字符之间,并且仅使用数字和小写字母。

queueName

string

队列名称在存储帐户中必须唯一,并且必须介于 3 到 63 个字符之间。名称必须只包含小写字母数字和短划线(-)字符,它应以字母数字字符开头和结尾,并且不能有两个连续短划线(-) 字符。

options
Models.QueueCreateOptionalParams

返回

Promise<Models.QueueCreateResponse>

承诺<Models.QueueCreateResponse>

create(string, string, string, QueueCreateOptionalParams, ServiceCallback<StorageQueue>)

function create(resourceGroupName: string, accountName: string, queueName: string, options: QueueCreateOptionalParams, callback: ServiceCallback<StorageQueue>)

参数

resourceGroupName

string

用户订阅中的资源组的名称。 名称不区分大小写。

accountName

string

指定资源组中的存储帐户的名称。 存储帐户名称长度必须介于 3 到 24 个字符之间,并且仅使用数字和小写字母。

queueName

string

队列名称在存储帐户中必须唯一,并且必须介于 3 到 63 个字符之间。名称必须只包含小写字母数字和短划线(-)字符,它应以字母数字字符开头和结尾,并且不能有两个连续短划线(-) 字符。

options
QueueCreateOptionalParams

可选参数

callback

ServiceCallback<StorageQueue>

回调

create(string, string, string, ServiceCallback<StorageQueue>)

function create(resourceGroupName: string, accountName: string, queueName: string, callback: ServiceCallback<StorageQueue>)

参数

resourceGroupName

string

用户订阅中的资源组的名称。 名称不区分大小写。

accountName

string

指定资源组中的存储帐户的名称。 存储帐户名称长度必须介于 3 到 24 个字符之间,并且仅使用数字和小写字母。

queueName

string

队列名称在存储帐户中必须唯一,并且必须介于 3 到 63 个字符之间。名称必须只包含小写字母数字和短划线(-)字符,它应以字母数字字符开头和结尾,并且不能有两个连续短划线(-) 字符。

callback

ServiceCallback<StorageQueue>

回调

deleteMethod(string, string, string, msRest.RequestOptionsBase)

删除具有指定队列名称的队列(如果存在)下的指定帐户。

function deleteMethod(resourceGroupName: string, accountName: string, queueName: string, options?: msRest.RequestOptionsBase)

参数

resourceGroupName

string

用户订阅中的资源组的名称。 名称不区分大小写。

accountName

string

指定资源组中的存储帐户的名称。 存储帐户名称长度必须介于 3 到 24 个字符之间,并且仅使用数字和小写字母。

queueName

string

队列名称在存储帐户中必须唯一,并且必须介于 3 到 63 个字符之间。名称必须只包含小写字母数字和短划线(-)字符,它应以字母数字字符开头和结尾,并且不能有两个连续短划线(-) 字符。

options
msRest.RequestOptionsBase

返回

Promise<RestResponse>

承诺<msRest.RestResponse>

deleteMethod(string, string, string, RequestOptionsBase, ServiceCallback<void>)

function deleteMethod(resourceGroupName: string, accountName: string, queueName: string, options: RequestOptionsBase, callback: ServiceCallback<void>)

参数

resourceGroupName

string

用户订阅中的资源组的名称。 名称不区分大小写。

accountName

string

指定资源组中的存储帐户的名称。 存储帐户名称长度必须介于 3 到 24 个字符之间,并且仅使用数字和小写字母。

queueName

string

队列名称在存储帐户中必须唯一,并且必须介于 3 到 63 个字符之间。名称必须只包含小写字母数字和短划线(-)字符,它应以字母数字字符开头和结尾,并且不能有两个连续短划线(-) 字符。

options

RequestOptionsBase

可选参数

callback

ServiceCallback<void>

回调

deleteMethod(string, string, string, ServiceCallback<void>)

function deleteMethod(resourceGroupName: string, accountName: string, queueName: string, callback: ServiceCallback<void>)

参数

resourceGroupName

string

用户订阅中的资源组的名称。 名称不区分大小写。

accountName

string

指定资源组中的存储帐户的名称。 存储帐户名称长度必须介于 3 到 24 个字符之间,并且仅使用数字和小写字母。

queueName

string

队列名称在存储帐户中必须唯一,并且必须介于 3 到 63 个字符之间。名称必须只包含小写字母数字和短划线(-)字符,它应以字母数字字符开头和结尾,并且不能有两个连续短划线(-) 字符。

callback

ServiceCallback<void>

回调

get(string, string, string, msRest.RequestOptionsBase)

获取具有指定队列名称的队列(如果存在)下的指定帐户。

function get(resourceGroupName: string, accountName: string, queueName: string, options?: msRest.RequestOptionsBase)

参数

resourceGroupName

string

用户订阅中的资源组的名称。 名称不区分大小写。

accountName

string

指定资源组中的存储帐户的名称。 存储帐户名称长度必须介于 3 到 24 个字符之间,并且仅使用数字和小写字母。

queueName

string

队列名称在存储帐户中必须唯一,并且必须介于 3 到 63 个字符之间。名称必须只包含小写字母数字和短划线(-)字符,它应以字母数字字符开头和结尾,并且不能有两个连续短划线(-) 字符。

options
msRest.RequestOptionsBase

返回

Promise<Models.QueueGetResponse>

承诺<Models.QueueGetResponse>

get(string, string, string, RequestOptionsBase, ServiceCallback<StorageQueue>)

function get(resourceGroupName: string, accountName: string, queueName: string, options: RequestOptionsBase, callback: ServiceCallback<StorageQueue>)

参数

resourceGroupName

string

用户订阅中的资源组的名称。 名称不区分大小写。

accountName

string

指定资源组中的存储帐户的名称。 存储帐户名称长度必须介于 3 到 24 个字符之间,并且仅使用数字和小写字母。

queueName

string

队列名称在存储帐户中必须唯一,并且必须介于 3 到 63 个字符之间。名称必须只包含小写字母数字和短划线(-)字符,它应以字母数字字符开头和结尾,并且不能有两个连续短划线(-) 字符。

options

RequestOptionsBase

可选参数

callback

ServiceCallback<StorageQueue>

回调

get(string, string, string, ServiceCallback<StorageQueue>)

function get(resourceGroupName: string, accountName: string, queueName: string, callback: ServiceCallback<StorageQueue>)

参数

resourceGroupName

string

用户订阅中的资源组的名称。 名称不区分大小写。

accountName

string

指定资源组中的存储帐户的名称。 存储帐户名称长度必须介于 3 到 24 个字符之间,并且仅使用数字和小写字母。

queueName

string

队列名称在存储帐户中必须唯一,并且必须介于 3 到 63 个字符之间。名称必须只包含小写字母数字和短划线(-)字符,它应以字母数字字符开头和结尾,并且不能有两个连续短划线(-) 字符。

callback

ServiceCallback<StorageQueue>

回调

list(string, string, Models.QueueListOptionalParams)

获取指定存储帐户下的所有队列的列表

function list(resourceGroupName: string, accountName: string, options?: Models.QueueListOptionalParams)

参数

resourceGroupName

string

用户订阅中的资源组的名称。 名称不区分大小写。

accountName

string

指定资源组中的存储帐户的名称。 存储帐户名称长度必须介于 3 到 24 个字符之间,并且仅使用数字和小写字母。

options
Models.QueueListOptionalParams

返回

Promise<Models.QueueListResponse>

承诺<模型.QueueListResponse>

list(string, string, QueueListOptionalParams, ServiceCallback<ListQueueResource>)

function list(resourceGroupName: string, accountName: string, options: QueueListOptionalParams, callback: ServiceCallback<ListQueueResource>)

参数

resourceGroupName

string

用户订阅中的资源组的名称。 名称不区分大小写。

accountName

string

指定资源组中的存储帐户的名称。 存储帐户名称长度必须介于 3 到 24 个字符之间,并且仅使用数字和小写字母。

options
QueueListOptionalParams

可选参数

callback

ServiceCallback<ListQueueResource>

回调

list(string, string, ServiceCallback<ListQueueResource>)

function list(resourceGroupName: string, accountName: string, callback: ServiceCallback<ListQueueResource>)

参数

resourceGroupName

string

用户订阅中的资源组的名称。 名称不区分大小写。

accountName

string

指定资源组中的存储帐户的名称。 存储帐户名称长度必须介于 3 到 24 个字符之间,并且仅使用数字和小写字母。

callback

ServiceCallback<ListQueueResource>

回调

listNext(string, Models.QueueListNextOptionalParams)

获取指定存储帐户下的所有队列的列表

function listNext(nextPageLink: string, options?: Models.QueueListNextOptionalParams)

参数

nextPageLink

string

上一次成功调用 List作的 NextLink。

options
Models.QueueListNextOptionalParams

返回

Promise<Models.QueueListNextResponse>

Promise<Models.QueueListNext响应>

listNext(string, QueueListNextOptionalParams, ServiceCallback<ListQueueResource>)

function listNext(nextPageLink: string, options: QueueListNextOptionalParams, callback: ServiceCallback<ListQueueResource>)

参数

nextPageLink

string

上一次成功调用 List作的 NextLink。

options
QueueListNextOptionalParams

可选参数

callback

ServiceCallback<ListQueueResource>

回调

listNext(string, ServiceCallback<ListQueueResource>)

function listNext(nextPageLink: string, callback: ServiceCallback<ListQueueResource>)

参数

nextPageLink

string

上一次成功调用 List作的 NextLink。

callback

ServiceCallback<ListQueueResource>

回调

update(string, string, string, Models.QueueUpdateOptionalParams)

在指定的帐户下创建具有指定队列名称的新队列。

function update(resourceGroupName: string, accountName: string, queueName: string, options?: Models.QueueUpdateOptionalParams)

参数

resourceGroupName

string

用户订阅中的资源组的名称。 名称不区分大小写。

accountName

string

指定资源组中的存储帐户的名称。 存储帐户名称长度必须介于 3 到 24 个字符之间,并且仅使用数字和小写字母。

queueName

string

队列名称在存储帐户中必须唯一,并且必须介于 3 到 63 个字符之间。名称必须只包含小写字母数字和短划线(-)字符,它应以字母数字字符开头和结尾,并且不能有两个连续短划线(-) 字符。

options
Models.QueueUpdateOptionalParams

返回

Promise<Models.QueueUpdateResponse>

承诺<Models.QueueUpdateResponse>

update(string, string, string, QueueUpdateOptionalParams, ServiceCallback<StorageQueue>)

function update(resourceGroupName: string, accountName: string, queueName: string, options: QueueUpdateOptionalParams, callback: ServiceCallback<StorageQueue>)

参数

resourceGroupName

string

用户订阅中的资源组的名称。 名称不区分大小写。

accountName

string

指定资源组中的存储帐户的名称。 存储帐户名称长度必须介于 3 到 24 个字符之间,并且仅使用数字和小写字母。

queueName

string

队列名称在存储帐户中必须唯一,并且必须介于 3 到 63 个字符之间。名称必须只包含小写字母数字和短划线(-)字符,它应以字母数字字符开头和结尾,并且不能有两个连续短划线(-) 字符。

options
QueueUpdateOptionalParams

可选参数

callback

ServiceCallback<StorageQueue>

回调

update(string, string, string, ServiceCallback<StorageQueue>)

function update(resourceGroupName: string, accountName: string, queueName: string, callback: ServiceCallback<StorageQueue>)

参数

resourceGroupName

string

用户订阅中的资源组的名称。 名称不区分大小写。

accountName

string

指定资源组中的存储帐户的名称。 存储帐户名称长度必须介于 3 到 24 个字符之间,并且仅使用数字和小写字母。

queueName

string

队列名称在存储帐户中必须唯一,并且必须介于 3 到 63 个字符之间。名称必须只包含小写字母数字和短划线(-)字符,它应以字母数字字符开头和结尾,并且不能有两个连续短划线(-) 字符。

callback

ServiceCallback<StorageQueue>

回调