语言

Conversations.GetActivityMembersWithHttpMessagesAsync 方法

定义

GetActivityMembers。

public System.Threading.Tasks.Task<Microsoft.Rest.HttpOperationResponse<System.Collections.Generic.IList<Microsoft.Bot.Connector.ChannelAccount>>> GetActivityMembersWithHttpMessagesAsync(string conversationId, string activityId, System.Collections.Generic.Dictionary<string,System.Collections.Generic.List<string>> customHeaders = default, System.Threading.CancellationToken cancellationToken = default);
public System.Threading.Tasks.Task<Microsoft.Rest.HttpOperationResponse<System.Collections.Generic.IList<Microsoft.Bot.Schema.ChannelAccount>>> GetActivityMembersWithHttpMessagesAsync(string conversationId, string activityId, System.Collections.Generic.Dictionary<string,System.Collections.Generic.List<string>> customHeaders = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetActivityMembersWithHttpMessagesAsync : string * string * System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.HttpOperationResponse<System.Collections.Generic.IList<Microsoft.Bot.Connector.ChannelAccount>>>
override this.GetActivityMembersWithHttpMessagesAsync : string * string * System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.HttpOperationResponse<System.Collections.Generic.IList<Microsoft.Bot.Connector.ChannelAccount>>>
abstract member GetActivityMembersWithHttpMessagesAsync : string * string * System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.HttpOperationResponse<System.Collections.Generic.IList<Microsoft.Bot.Schema.ChannelAccount>>>
override this.GetActivityMembersWithHttpMessagesAsync : string * string * System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.HttpOperationResponse<System.Collections.Generic.IList<Microsoft.Bot.Schema.ChannelAccount>>>
Public Function GetActivityMembersWithHttpMessagesAsync (conversationId As String, activityId As String, Optional customHeaders As Dictionary(Of String, List(Of String)) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of HttpOperationResponse(Of IList(Of ChannelAccount)))

参数

conversationId
String

对话 ID。

activityId
String

活动 ID。

customHeaders
Dictionary<String,List<String>>

请求时会添加的头部。

cancellationToken
CancellationToken

取消令牌。

返回

Task<Microsoft.Rest.HttpOperationResponse<IList<ChannelAccount>>>
Task<Microsoft.Rest.HttpOperationResponse<IList<ChannelAccount>>>

包含响应体和响应头部的响应对象。

实现

例外

当操作返回无效状态码时,会被抛出。

Microsoft.Rest.SerializationException

当无法反序列化响应时被抛弃。

Microsoft.Rest.ValidationException

当输入值与预期数据类型、范围或模式不匹配时,会被抛出。

当所需参数为空时,会被抛出。

注解

枚举活动的成员。

此 REST API 采用 ConversationId 和 ActivityId,返回一个 ChannelAccount 对象数组,表示会话中特定活动的成员。

适用于