Compartilhar via


CommunicationExtensions.GetCommunicationServiceResource Método

Definição

Sobrecargas

GetCommunicationServiceResource(ArmClient, ResourceIdentifier)

Obtém um objeto que representa um CommunicationServiceResource junto com as operações de instância que podem ser executadas nele, mas sem dados. Você pode usar CreateResourceIdentifier(String, String, String) para criar um CommunicationServiceResourceResourceIdentifier de seus componentes.

GetCommunicationServiceResource(ResourceGroupResource, String, CancellationToken)

Obtenha o CommunicationService e suas propriedades.

  • Caminho da Solicitação/assinaturas/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Communication/communicationServices/{communicationServiceName}
  • IdCommunicationServices_Get de operação

GetCommunicationServiceResource(ArmClient, ResourceIdentifier)

Obtém um objeto que representa um CommunicationServiceResource junto com as operações de instância que podem ser executadas nele, mas sem dados. Você pode usar CreateResourceIdentifier(String, String, String) para criar um CommunicationServiceResourceResourceIdentifier de seus componentes.

public static Azure.ResourceManager.Communication.CommunicationServiceResource GetCommunicationServiceResource (this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id);
static member GetCommunicationServiceResource : Azure.ResourceManager.ArmClient * Azure.Core.ResourceIdentifier -> Azure.ResourceManager.Communication.CommunicationServiceResource
<Extension()>
Public Function GetCommunicationServiceResource (client As ArmClient, id As ResourceIdentifier) As CommunicationServiceResource

Parâmetros

client
ArmClient

A ArmClient instância na qual o método será executado.

id
ResourceIdentifier

A ID do recurso a ser obtido.

Retornos

Retorna um objeto CommunicationServiceResource.

Aplica-se a

GetCommunicationServiceResource(ResourceGroupResource, String, CancellationToken)

Obtenha o CommunicationService e suas propriedades.

  • Caminho da Solicitação/assinaturas/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Communication/communicationServices/{communicationServiceName}
  • IdCommunicationServices_Get de operação
public static Azure.Response<Azure.ResourceManager.Communication.CommunicationServiceResource> GetCommunicationServiceResource (this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string communicationServiceName, System.Threading.CancellationToken cancellationToken = default);
static member GetCommunicationServiceResource : Azure.ResourceManager.Resources.ResourceGroupResource * string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.Communication.CommunicationServiceResource>
<Extension()>
Public Function GetCommunicationServiceResource (resourceGroupResource As ResourceGroupResource, communicationServiceName As String, Optional cancellationToken As CancellationToken = Nothing) As Response(Of CommunicationServiceResource)

Parâmetros

resourceGroupResource
ResourceGroupResource

A ResourceGroupResource instância na qual 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 era esperado que não estivesse vazio.

communicationServiceName é nulo.

Aplica-se a