INamespaceOperations.CreateAuthorizationRuleAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.
The shared access authorization rule.
- cancellationToken
- CancellationToken
Cancellation token.
Returns
A response to a request for a particular authorization rule.