Compartir a través de


CommunicationExtensions.GetEmailServiceResourceAsync Método

Definición

Obtenga emailService y sus propiedades.

  • Ruta de acceso de solicitud/suscripciones/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Communication/emailServices/{emailServiceName}
  • IdEmailServices_Get de operaciones
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

Instancia ResourceGroupResource en la que se ejecutará el método.

emailServiceName
String

Nombre del recurso EmailService.

cancellationToken
CancellationToken

Token de cancelación que se va a usar.

Devoluciones

Excepciones

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

emailServiceName es null.

Se aplica a