CallMedia.SendDtmfTonesAsync 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
SendDtmfTonesAsync(IEnumerable<DtmfTone>, CommunicationIdentifier, CancellationToken) |
Send Dtmf tones in async mode. |
SendDtmfTonesAsync(SendDtmfTonesOptions, CancellationToken) |
Send Dtmf tones in async mode with sendDtmfTonesOptions and configurations. |
SendDtmfTonesAsync(IEnumerable<DtmfTone>, CommunicationIdentifier, CancellationToken)
- Source:
- CallMedia.cs
- Source:
- CallMedia.cs
Send Dtmf tones in async mode.
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.Communication.CallAutomation.SendDtmfTonesResult>> SendDtmfTonesAsync (System.Collections.Generic.IEnumerable<Azure.Communication.CallAutomation.DtmfTone> tones, Azure.Communication.CommunicationIdentifier targetParticipant, System.Threading.CancellationToken cancellationToken = default);
abstract member SendDtmfTonesAsync : seq<Azure.Communication.CallAutomation.DtmfTone> * Azure.Communication.CommunicationIdentifier * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.Communication.CallAutomation.SendDtmfTonesResult>>
override this.SendDtmfTonesAsync : seq<Azure.Communication.CallAutomation.DtmfTone> * Azure.Communication.CommunicationIdentifier * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.Communication.CallAutomation.SendDtmfTonesResult>>
Public Overridable Function SendDtmfTonesAsync (tones As IEnumerable(Of DtmfTone), targetParticipant As CommunicationIdentifier, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of SendDtmfTonesResult))
Parameters
- tones
- IEnumerable<DtmfTone>
A list of Tones to be sent.
- targetParticipant
- CommunicationIdentifier
A target participant identifier for starting continuous Dtmf recognition.
- cancellationToken
- CancellationToken
An optional CancellationToken to cancel the request.
Returns
Returns a Response containing a SendDtmfResult object indicating the result of the send operation.
Applies to
SendDtmfTonesAsync(SendDtmfTonesOptions, CancellationToken)
- Source:
- CallMedia.cs
- Source:
- CallMedia.cs
Send Dtmf tones in async mode with sendDtmfTonesOptions and configurations.
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.Communication.CallAutomation.SendDtmfTonesResult>> SendDtmfTonesAsync (Azure.Communication.CallAutomation.SendDtmfTonesOptions options, System.Threading.CancellationToken cancellationToken = default);
abstract member SendDtmfTonesAsync : Azure.Communication.CallAutomation.SendDtmfTonesOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.Communication.CallAutomation.SendDtmfTonesResult>>
override this.SendDtmfTonesAsync : Azure.Communication.CallAutomation.SendDtmfTonesOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.Communication.CallAutomation.SendDtmfTonesResult>>
Public Overridable Function SendDtmfTonesAsync (options As SendDtmfTonesOptions, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of SendDtmfTonesResult))
Parameters
- options
- SendDtmfTonesOptions
An optional object containing SendDtmfTones options and configurations.
- cancellationToken
- CancellationToken
An optional CancellationToken to cancel the request.
Returns
Returns a Response containing a SendDtmfResult object indicating the result of the send operation.
Applies to
Azure SDK for .NET