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

BatchSharedKeyCredentials class

创建新的 BatchSharedKeyCredentials 对象。

构造函数

BatchSharedKeyCredentials(string, string)

属性

accountKey

批处理帐户密钥。

accountName

批处理帐户名称。

方法

signRequest(WebResource)

使用身份验证标头对请求进行签名。

构造函数详细信息

BatchSharedKeyCredentials(string, string)

new BatchSharedKeyCredentials(accountName: string, accountKey: string)

参数

accountName

string

accountKey

string

属性详细信息

accountKey

批处理帐户密钥。

accountKey: string

属性值

string

accountName

批处理帐户名称。

accountName: string

属性值

string

方法详细信息

signRequest(WebResource)

使用身份验证标头对请求进行签名。

function signRequest(webResource: WebResource): Promise<WebResource>

参数

webResource
WebResource

返回

Promise<WebResource>