你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
CallMedia.SendDtmfTones 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
SendDtmfTones(SendDtmfTonesOptions, CancellationToken) |
Send Dtmf tones with sendDtmfTonesOptions and configurations. |
SendDtmfTones(IEnumerable<DtmfTone>, CommunicationIdentifier, CancellationToken) |
Send Dtmf tones. |
SendDtmfTones(SendDtmfTonesOptions, CancellationToken)
- Source:
- CallMedia.cs
- Source:
- CallMedia.cs
Send Dtmf tones with sendDtmfTonesOptions and configurations.
public virtual Azure.Response<Azure.Communication.CallAutomation.SendDtmfTonesResult> SendDtmfTones (Azure.Communication.CallAutomation.SendDtmfTonesOptions options, System.Threading.CancellationToken cancellationToken = default);
abstract member SendDtmfTones : Azure.Communication.CallAutomation.SendDtmfTonesOptions * System.Threading.CancellationToken -> Azure.Response<Azure.Communication.CallAutomation.SendDtmfTonesResult>
override this.SendDtmfTones : Azure.Communication.CallAutomation.SendDtmfTonesOptions * System.Threading.CancellationToken -> Azure.Response<Azure.Communication.CallAutomation.SendDtmfTonesResult>
Public Overridable Function SendDtmfTones (options As SendDtmfTonesOptions, Optional cancellationToken As CancellationToken = Nothing) As 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
SendDtmfTones(IEnumerable<DtmfTone>, CommunicationIdentifier, CancellationToken)
- Source:
- CallMedia.cs
- Source:
- CallMedia.cs
Send Dtmf tones.
public virtual Azure.Response<Azure.Communication.CallAutomation.SendDtmfTonesResult> SendDtmfTones (System.Collections.Generic.IEnumerable<Azure.Communication.CallAutomation.DtmfTone> tones, Azure.Communication.CommunicationIdentifier targetParticipant, System.Threading.CancellationToken cancellationToken = default);
abstract member SendDtmfTones : seq<Azure.Communication.CallAutomation.DtmfTone> * Azure.Communication.CommunicationIdentifier * System.Threading.CancellationToken -> Azure.Response<Azure.Communication.CallAutomation.SendDtmfTonesResult>
override this.SendDtmfTones : seq<Azure.Communication.CallAutomation.DtmfTone> * Azure.Communication.CommunicationIdentifier * System.Threading.CancellationToken -> Azure.Response<Azure.Communication.CallAutomation.SendDtmfTonesResult>
Public Overridable Function SendDtmfTones (tones As IEnumerable(Of DtmfTone), targetParticipant As CommunicationIdentifier, Optional cancellationToken As CancellationToken = Nothing) As 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.