Dela via


NamespaceOperationsExtensions.CreateAuthorizationRuleAsync Method

Definition

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

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

Parameters

operations
INamespaceOperations

Reference to the Microsoft.WindowsAzure.Management.ServiceBus.INamespaceOperations.

namespaceName
String

Required. The namespace name.

rule
ServiceBusSharedAccessAuthorizationRule

Required. The shared access authorization rule.

Returns

A response to a request for a particular authorization rule.

Applies to