Partager via


CommunicationExtensions.GetCommunicationServiceResourceAsync Méthode

Définition

Obtenez CommunicationService et ses propriétés.

  • Chemin de la requête/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Communication/communicationServices/{communicationServiceName}
  • IdCommunicationServices_Get d’opération
public static System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Communication.CommunicationServiceResource>> GetCommunicationServiceResourceAsync (this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string communicationServiceName, System.Threading.CancellationToken cancellationToken = default);
static member GetCommunicationServiceResourceAsync : Azure.ResourceManager.Resources.ResourceGroupResource * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Communication.CommunicationServiceResource>>
<Extension()>
Public Function GetCommunicationServiceResourceAsync (resourceGroupResource As ResourceGroupResource, communicationServiceName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of CommunicationServiceResource))

Paramètres

resourceGroupResource
ResourceGroupResource

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

communicationServiceName
String

Nom de la ressource CommunicationService.

cancellationToken
CancellationToken

Jeton d’annulation à utiliser.

Retours

Exceptions

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

communicationServiceName a la valeur null.

S’applique à