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

CallAutomationClient.CreateCallAsync 方法

定义

重载

CreateCallAsync(CreateCallOptions, CancellationToken)

创建对目标被邀请者的传出呼叫。

CreateCallAsync(CallInvite, Uri, CancellationToken)

创建对目标被邀请者的传出呼叫。

CreateCallAsync(CreateCallOptions, CancellationToken)

Source:
CallAutomationClient.cs
Source:
CallAutomationClient.cs

创建对目标被邀请者的传出呼叫。

public virtual System.Threading.Tasks.Task<Azure.Response<Azure.Communication.CallAutomation.CreateCallResult>> CreateCallAsync (Azure.Communication.CallAutomation.CreateCallOptions options, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateCallAsync : Azure.Communication.CallAutomation.CreateCallOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.Communication.CallAutomation.CreateCallResult>>
override this.CreateCallAsync : Azure.Communication.CallAutomation.CreateCallOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.Communication.CallAutomation.CreateCallResult>>
Public Overridable Function CreateCallAsync (options As CreateCallOptions, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of CreateCallResult))

参数

options
CreateCallOptions

CreateCall 请求的选项。

cancellationToken
CancellationToken

取消标记。

返回

例外

options 为 null。

options CallbackUri 的格式不正确。

服务器返回了错误。 有关从服务器返回的详细信息,请参阅 Message

适用于

CreateCallAsync(CallInvite, Uri, CancellationToken)

Source:
CallAutomationClient.cs
Source:
CallAutomationClient.cs

创建对目标被邀请者的传出呼叫。

public virtual System.Threading.Tasks.Task<Azure.Response<Azure.Communication.CallAutomation.CreateCallResult>> CreateCallAsync (Azure.Communication.CallAutomation.CallInvite callInvite, Uri callbackUri, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateCallAsync : Azure.Communication.CallAutomation.CallInvite * Uri * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.Communication.CallAutomation.CreateCallResult>>
override this.CreateCallAsync : Azure.Communication.CallAutomation.CallInvite * Uri * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.Communication.CallAutomation.CreateCallResult>>
Public Overridable Function CreateCallAsync (callInvite As CallInvite, callbackUri As Uri, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of CreateCallResult))

参数

callInvite
CallInvite
callbackUri
Uri
cancellationToken
CancellationToken

返回

例外

callInvite 为 null。

callbackUri CallbackUri 的格式不正确或为空。

服务器返回了错误。 有关从服务器返回的详细信息,请参阅 Message

适用于