Partilhar via


EmailServiceResourceCollection.GetAsync(String, CancellationToken) Método

Definição

Obtenha o EmailService e suas propriedades.

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

Parâmetros

emailServiceName
String

O nome do recurso EmailService.

cancellationToken
CancellationToken

O token de cancelamento a ser usado.

Retornos

Exceções

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

emailServiceName é nulo.

Aplica-se a