Compartilhar via


EventSubscriptionCollection.GetAsync(String, CancellationToken) Método

Definição

Obter propriedades de uma assinatura de evento.

  • Caminho da Solicitação/{scope}/providers/Microsoft.EventGrid/eventSubscriptions/{eventSubscriptionName}
  • IdEventSubscriptions_Get de operação
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.EventGrid.EventSubscriptionResource>> GetAsync (string eventSubscriptionName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.EventGrid.EventSubscriptionResource>>
override this.GetAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.EventGrid.EventSubscriptionResource>>
Public Overridable Function GetAsync (eventSubscriptionName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of EventSubscriptionResource))

Parâmetros

eventSubscriptionName
String

Nome da assinatura do evento.

cancellationToken
CancellationToken

O token de cancelamento a ser usado.

Retornos

Exceções

eventSubscriptionName é uma cadeia de caracteres vazia e era esperado que não estivesse vazio.

eventSubscriptionName é nulo.

Aplica-se a