你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

CallMedia.SendDtmfTonesAsync 方法

定义

在异步模式下发送 Dtmf 音。

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, string operationContext = default, System.Threading.CancellationToken cancellationToken = default);
abstract member SendDtmfTonesAsync : seq<Azure.Communication.CallAutomation.DtmfTone> * Azure.Communication.CommunicationIdentifier * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.Communication.CallAutomation.SendDtmfTonesResult>>
override this.SendDtmfTonesAsync : seq<Azure.Communication.CallAutomation.DtmfTone> * Azure.Communication.CommunicationIdentifier * string * 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 operationContext As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of SendDtmfTonesResult))

参数

tones
IEnumerable<DtmfTone>

要发送的音调列表。

targetParticipant
CommunicationIdentifier

用于启动连续 Dtmf 识别的目标参与者标识符。

operationContext
String

包含操作相关信息的可选上下文对象,例如唯一标识符或自定义元数据。

cancellationToken
CancellationToken

用于取消请求的可选 CancellationToken。

返回

返回一个 Response,其中包含一个 SendDtmfResult 对象,该对象指示发送操作的结果。

适用于