Share via


ConversationsExtensions.GetActivityMembersAsync Method

Definition

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))

Parameters

operations
IConversations

The operations group for this extension method.

conversationId
String

Conversation ID.

activityId
String

Activity ID.

cancellationToken
CancellationToken

The cancellation token.

Returns

A collection of members of an activity.

Remarks

Enumerate the members of an activity.

This REST API takes a ConversationId and a ActivityId, returning an array of ChannelAccount objects representing the members of the particular activity in the conversation.

Applies to