Share via


CallAutomationClient.RejectCall Method

Definition

Overloads

RejectCall(RejectCallOptions, CancellationToken)
RejectCall(String, CancellationToken)

RejectCall(RejectCallOptions, CancellationToken)

Source:
CallAutomationClient.cs
Source:
CallAutomationClient.cs
public virtual Azure.Response RejectCall (Azure.Communication.CallAutomation.RejectCallOptions options, System.Threading.CancellationToken cancellationToken = default);
abstract member RejectCall : Azure.Communication.CallAutomation.RejectCallOptions * System.Threading.CancellationToken -> Azure.Response
override this.RejectCall : Azure.Communication.CallAutomation.RejectCallOptions * System.Threading.CancellationToken -> Azure.Response
Public Overridable Function RejectCall (options As RejectCallOptions, Optional cancellationToken As CancellationToken = Nothing) As 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

RejectCall(String, CancellationToken)

Source:
CallAutomationClient.cs
Source:
CallAutomationClient.cs
public virtual Azure.Response RejectCall (string incomingCallContext, System.Threading.CancellationToken cancellationToken = default);
abstract member RejectCall : string * System.Threading.CancellationToken -> Azure.Response
override this.RejectCall : string * System.Threading.CancellationToken -> Azure.Response
Public Overridable Function RejectCall (incomingCallContext As String, Optional cancellationToken As CancellationToken = Nothing) As 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