Compartir a través de


ServiceBusTopicResource.GetServiceBusSubscriptionAsync Método

Definición

Devuelve una descripción de suscripción para el tema especificado.

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

Parámetros

subscriptionName
String

Nombre de la suscripción.

cancellationToken
CancellationToken

Token de cancelación que se va a usar.

Devoluciones

Excepciones

subscriptionName es una cadena vacía y se espera que no esté vacía.

subscriptionName es null.

Se aplica a