Partilhar via


PartnerNamespaceChannelCollection.GetAsync(String, CancellationToken) Método

Definição

Obter propriedades de um canal.

  • Caminho da Solicitação/assinaturas/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/partnerNamespaces/{partnerNamespaceName}/channels/{channelName}
  • Operação IdChannels_Get
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.EventGrid.PartnerNamespaceChannelResource>> GetAsync (string channelName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.EventGrid.PartnerNamespaceChannelResource>>
override this.GetAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.EventGrid.PartnerNamespaceChannelResource>>
Public Overridable Function GetAsync (channelName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of PartnerNamespaceChannelResource))

Parâmetros

channelName
String

Nome do canal.

cancellationToken
CancellationToken

O token de cancelamento a ser usado.

Retornos

Exceções

channelName é uma cadeia de caracteres vazia e esperava-se que não estivesse vazia.

channelName é nulo.

Aplica-se a