Partager via


CommunicationExtensions.GetEmailServiceResourceAsync Méthode

Définition

Obtenez le service EmailService et ses propriétés.

  • Chemin de la demande/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Communication/emailServices/{emailServiceName}
  • Opération 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))

Paramètres

resourceGroupResource
ResourceGroupResource

Instance ResourceGroupResource sur laquelle la méthode s’exécute.

emailServiceName
String

Nom de la ressource EmailService.

cancellationToken
CancellationToken

Jeton d’annulation à utiliser.

Retours

Exceptions

emailServiceName est une chaîne vide et devait être non vide.

emailServiceName a la valeur null.

S’applique à