CallAutomationClient.RejectCall Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Azure SDK for .NET