Partilhar via


CommunicationExtensions.GetCommunicationServiceResourceAsync Método

Definição

Obtenha o CommunicationService e suas propriedades.

  • Caminho da Solicitação/assinaturas/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Communication/communicationServices/{communicationServiceName}
  • Operação IdCommunicationServices_Get
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))

Parâmetros

resourceGroupResource
ResourceGroupResource

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

communicationServiceName
String

O nome do recurso CommunicationService.

cancellationToken
CancellationToken

O token de cancelamento a ser usado.

Retornos

Exceções

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

communicationServiceName é nulo.

Aplica-se a