共用方式為


INamespaceOperations.CreateAuthorizationRuleAsync Method

Definition

The create namespace authorization rule operation creates an authorization rule for a namespace

public System.Threading.Tasks.Task<Microsoft.WindowsAzure.Management.ServiceBus.Models.ServiceBusAuthorizationRuleResponse> CreateAuthorizationRuleAsync (string namespaceName, Microsoft.WindowsAzure.Management.ServiceBus.Models.ServiceBusSharedAccessAuthorizationRule rule, System.Threading.CancellationToken cancellationToken);
abstract member CreateAuthorizationRuleAsync : string * Microsoft.WindowsAzure.Management.ServiceBus.Models.ServiceBusSharedAccessAuthorizationRule * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.WindowsAzure.Management.ServiceBus.Models.ServiceBusAuthorizationRuleResponse>
Public Function CreateAuthorizationRuleAsync (namespaceName As String, rule As ServiceBusSharedAccessAuthorizationRule, cancellationToken As CancellationToken) As Task(Of ServiceBusAuthorizationRuleResponse)

Parameters

namespaceName
String

The namespace name.

rule
ServiceBusSharedAccessAuthorizationRule

The shared access authorization rule.

cancellationToken
CancellationToken

Cancellation token.

Returns

A response to a request for a particular authorization rule.

Applies to