ConversationsExtensions.GetActivityMembersAsync 方法

定义

GetActivityMembers。

public static System.Threading.Tasks.Task<System.Collections.Generic.IList<Microsoft.Bot.Connector.ChannelAccount>> GetActivityMembersAsync (this Microsoft.Bot.Connector.IConversations operations, string conversationId, string activityId, System.Threading.CancellationToken cancellationToken = default);
public static System.Threading.Tasks.Task<System.Collections.Generic.IList<Microsoft.Bot.Schema.ChannelAccount>> GetActivityMembersAsync (this Microsoft.Bot.Connector.IConversations operations, string conversationId, string activityId, System.Threading.CancellationToken cancellationToken = default);
static member GetActivityMembersAsync : Microsoft.Bot.Connector.IConversations * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.IList<Microsoft.Bot.Connector.ChannelAccount>>
static member GetActivityMembersAsync : Microsoft.Bot.Connector.IConversations * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.IList<Microsoft.Bot.Schema.ChannelAccount>>
<Extension()>
Public Function GetActivityMembersAsync (operations As IConversations, conversationId As String, activityId As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of IList(Of ChannelAccount))

参数

operations
IConversations

此扩展方法的操作组。

conversationId
String

对话 ID。

activityId
String

活动 ID。

cancellationToken
CancellationToken

取消标记。

返回

活动的成员集合。

注解

枚举活动的成员。

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

适用于