你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
CallConnection.AddParticipant 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
AddParticipant(AddParticipantOptions, CancellationToken) |
将参与者添加到通话。 |
AddParticipant(CallInvite, CancellationToken) |
将参与者添加到通话。 |
AddParticipant(AddParticipantOptions, CancellationToken)
- Source:
- CallConnection.cs
- Source:
- CallConnection.cs
将参与者添加到通话。
public virtual Azure.Response<Azure.Communication.CallAutomation.AddParticipantResult> AddParticipant (Azure.Communication.CallAutomation.AddParticipantOptions options, System.Threading.CancellationToken cancellationToken = default);
abstract member AddParticipant : Azure.Communication.CallAutomation.AddParticipantOptions * System.Threading.CancellationToken -> Azure.Response<Azure.Communication.CallAutomation.AddParticipantResult>
override this.AddParticipant : Azure.Communication.CallAutomation.AddParticipantOptions * System.Threading.CancellationToken -> Azure.Response<Azure.Communication.CallAutomation.AddParticipantResult>
Public Overridable Function AddParticipant (options As AddParticipantOptions, Optional cancellationToken As CancellationToken = Nothing) As Response(Of AddParticipantResult)
参数
- options
- AddParticipantOptions
“添加参与者”操作的选项。
- cancellationToken
- CancellationToken
取消标记。
返回
例外
服务器返回了错误。 有关从服务器返回的详细信息,请参阅 Message 。
options
为 null。
适用于
AddParticipant(CallInvite, CancellationToken)
- Source:
- CallConnection.cs
- Source:
- CallConnection.cs
将参与者添加到通话。
public virtual Azure.Response<Azure.Communication.CallAutomation.AddParticipantResult> AddParticipant (Azure.Communication.CallAutomation.CallInvite participantToAdd, System.Threading.CancellationToken cancellationToken = default);
abstract member AddParticipant : Azure.Communication.CallAutomation.CallInvite * System.Threading.CancellationToken -> Azure.Response<Azure.Communication.CallAutomation.AddParticipantResult>
override this.AddParticipant : Azure.Communication.CallAutomation.CallInvite * System.Threading.CancellationToken -> Azure.Response<Azure.Communication.CallAutomation.AddParticipantResult>
Public Overridable Function AddParticipant (participantToAdd As CallInvite, Optional cancellationToken As CancellationToken = Nothing) As Response(Of AddParticipantResult)
参数
- participantToAdd
- CallInvite
要添加的参与者。
- cancellationToken
- CancellationToken
取消标记。
返回
例外
服务器返回了错误。 有关从服务器返回的详细信息,请参阅 Message 。
participantToAdd
为 null。