CallAutomationClient.RejectCallAsync Method

Definition

Overloads

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

RejectCallAsync(RejectCallOptions, CancellationToken)

Source:
CallAutomationClient.cs
Source:
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)

Parameters

options
RejectCallOptions

Options for the Reject operations.

cancellationToken
CancellationToken

The cancellation token

Returns

Exceptions

options Repeatability headers are set incorrectly.

The server returned an error. See Message for details returned from the server.

options is null.

Applies to

RejectCallAsync(String, CancellationToken)

Source:
CallAutomationClient.cs
Source:
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)

Parameters

incomingCallContext
String

The incoming call context

cancellationToken
CancellationToken

The cancellation token.

Returns

Exceptions

The server returned an error. See Message for details returned from the server.

incomingCallContext is null.

Applies to