Compartilhar via


CommunicationExtensions.GetEmailServiceResourceAsync 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 static System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Communication.EmailServiceResource>> GetEmailServiceResourceAsync (this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string emailServiceName, System.Threading.CancellationToken cancellationToken = default);
static member GetEmailServiceResourceAsync : Azure.ResourceManager.Resources.ResourceGroupResource * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Communication.EmailServiceResource>>
<Extension()>
Public Function GetEmailServiceResourceAsync (resourceGroupResource As ResourceGroupResource, emailServiceName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of EmailServiceResource))

Parâmetros

resourceGroupResource
ResourceGroupResource

A ResourceGroupResource instância em que o método será executado.

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