Partager via


WcfRelayAuthorizationRuleCollection.GetAsync Méthode

Définition

Obtenez authorizationRule pour un relais WCF par nom.

  • Chemin de la demande/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Relay/namespaces/{namespaceName}/wcfRelays/{relayName}/authorizationRules/{authorizationRuleName}
  • IdWCFRelays_GetAuthorizationRule d’opération
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Relay.WcfRelayAuthorizationRuleResource>> GetAsync (string authorizationRuleName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Relay.WcfRelayAuthorizationRuleResource>>
override this.GetAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Relay.WcfRelayAuthorizationRuleResource>>
Public Overridable Function GetAsync (authorizationRuleName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of WcfRelayAuthorizationRuleResource))

Paramètres

authorizationRuleName
String

Nom de la règle d’autorisation.

cancellationToken
CancellationToken

Jeton d’annulation à utiliser.

Retours

Exceptions

authorizationRuleName est une chaîne vide et devait être non vide.

authorizationRuleName a la valeur null.

S’applique à