Compartilhar via


CallConnection.AddParticipantAsync Método

Definição

Adicione um participante à chamada.

public virtual System.Threading.Tasks.Task<Azure.Response<Azure.Communication.CallingServer.AddParticipantResult>> AddParticipantAsync (Azure.Communication.CommunicationIdentifier participant, string alternateCallerId = default, string operationContext = default, System.Threading.CancellationToken cancellationToken = default);
abstract member AddParticipantAsync : Azure.Communication.CommunicationIdentifier * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.Communication.CallingServer.AddParticipantResult>>
override this.AddParticipantAsync : Azure.Communication.CommunicationIdentifier * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.Communication.CallingServer.AddParticipantResult>>
Public Overridable Function AddParticipantAsync (participant As CommunicationIdentifier, Optional alternateCallerId As String = Nothing, Optional operationContext As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of AddParticipantResult))

Parâmetros

participant
CommunicationIdentifier

A identidade do participante a ser adicionado à chamada.

alternateCallerId
String

O número de telefone a ser usado ao adicionar um participante pstn.

operationContext
String

O contexto da operação.

cancellationToken
CancellationToken

O token de cancelamento.

Retornos

Exceções

O servidor retornou um erro. Consulte Message para obter detalhes retornados do servidor.

participant é nulo.

Aplica-se a