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

NamespacesOperationsExtensions.CreateOrUpdateAuthorizationRuleAsync 方法

定义

创建或更新命名空间的 AuthorizationRule。

public static System.Threading.Tasks.Task<Microsoft.Azure.Management.EventHub.Models.AuthorizationRule> CreateOrUpdateAuthorizationRuleAsync (this Microsoft.Azure.Management.EventHub.INamespacesOperations operations, string resourceGroupName, string namespaceName, string authorizationRuleName, System.Collections.Generic.IList<string> rights, System.Threading.CancellationToken cancellationToken = default);
static member CreateOrUpdateAuthorizationRuleAsync : Microsoft.Azure.Management.EventHub.INamespacesOperations * string * string * string * System.Collections.Generic.IList<string> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.EventHub.Models.AuthorizationRule>
<Extension()>
Public Function CreateOrUpdateAuthorizationRuleAsync (operations As INamespacesOperations, resourceGroupName As String, namespaceName As String, authorizationRuleName As String, rights As IList(Of String), Optional cancellationToken As CancellationToken = Nothing) As Task(Of AuthorizationRule)

参数

operations
INamespacesOperations

此扩展方法的操作组。

resourceGroupName
String

Azure 订阅中资源组的名称。

namespaceName
String

命名空间名称

authorizationRuleName
String

授权规则名称。

rights
IList<String>

与规则关联的权限。

cancellationToken
CancellationToken

取消标记。

返回

适用于