Compartir a través de


ServiceBusRuleCollection.GetAsync(String, CancellationToken) Método

Definición

Recupera la descripción de la regla especificada.

  • Ruta de acceso de solicitud/suscripciones/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/topics/{topicName}/subscriptions/{subscriptionName}/rules/{ruleName}
  • IdRules_Get de operación
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.ServiceBus.ServiceBusRuleResource>> GetAsync (string ruleName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.ServiceBus.ServiceBusRuleResource>>
override this.GetAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.ServiceBus.ServiceBusRuleResource>>
Public Overridable Function GetAsync (ruleName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of ServiceBusRuleResource))

Parámetros

ruleName
String

Nombre de la regla.

cancellationToken
CancellationToken

Token de cancelación que se va a usar.

Devoluciones

Excepciones

ruleName es una cadena vacía y se esperaba que no estuviera vacía.

ruleName es null.

Se aplica a