你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
QueueClient.SetAccessPolicyAsync 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
SetAccessPolicyAsync 为可能与共享访问签名一起使用的队列设置存储访问策略。
有关详细信息,请参阅 设置队列 ACL。
public virtual System.Threading.Tasks.Task<Azure.Response> SetAccessPolicyAsync (System.Collections.Generic.IEnumerable<Azure.Storage.Queues.Models.QueueSignedIdentifier> permissions, System.Threading.CancellationToken cancellationToken = default);
abstract member SetAccessPolicyAsync : seq<Azure.Storage.Queues.Models.QueueSignedIdentifier> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response>
override this.SetAccessPolicyAsync : seq<Azure.Storage.Queues.Models.QueueSignedIdentifier> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response>
Public Overridable Function SetAccessPolicyAsync (permissions As IEnumerable(Of QueueSignedIdentifier), Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response)
参数
- permissions
- IEnumerable<QueueSignedIdentifier>
的 IEnumerable QueueSignedIdentifier
- cancellationToken
- CancellationToken