Compartilhar via


CallAutomationClient.RejectCallAsync Método

Definição

Sobrecargas

RejectCallAsync(RejectCallOptions, CancellationToken)
RejectCallAsync(String, CancellationToken)

RejectCallAsync(RejectCallOptions, CancellationToken)

Origem:
CallAutomationClient.cs
Origem:
CallAutomationClient.cs
public virtual System.Threading.Tasks.Task<Azure.Response> RejectCallAsync (Azure.Communication.CallAutomation.RejectCallOptions options, System.Threading.CancellationToken cancellationToken = default);
abstract member RejectCallAsync : Azure.Communication.CallAutomation.RejectCallOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response>
override this.RejectCallAsync : Azure.Communication.CallAutomation.RejectCallOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response>
Public Overridable Function RejectCallAsync (options As RejectCallOptions, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response)

Parâmetros

options
RejectCallOptions

Opções para as operações rejeitar.

cancellationToken
CancellationToken

O token de cancelamento

Retornos

Exceções

options Os cabeçalhos de repetibilidade são definidos incorretamente.

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

options é nulo.

Aplica-se a

RejectCallAsync(String, CancellationToken)

Origem:
CallAutomationClient.cs
Origem:
CallAutomationClient.cs
public virtual System.Threading.Tasks.Task<Azure.Response> RejectCallAsync (string incomingCallContext, System.Threading.CancellationToken cancellationToken = default);
abstract member RejectCallAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response>
override this.RejectCallAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response>
Public Overridable Function RejectCallAsync (incomingCallContext As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response)

Parâmetros

incomingCallContext
String

O contexto de chamada de entrada

cancellationToken
CancellationToken

O token de cancelamento.

Retornos

Exceções

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

incomingCallContext é nulo.

Aplica-se a