Share via


BotFrameworkAdapter.GetActivityMembersAsync Method

Definition

Lists the members of a given activity.

public virtual System.Threading.Tasks.Task<System.Collections.Generic.IList<Microsoft.Bot.Schema.ChannelAccount>> GetActivityMembersAsync (Microsoft.Bot.Builder.ITurnContext turnContext, string activityId, System.Threading.CancellationToken cancellationToken);
abstract member GetActivityMembersAsync : Microsoft.Bot.Builder.ITurnContext * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.IList<Microsoft.Bot.Schema.ChannelAccount>>
override this.GetActivityMembersAsync : Microsoft.Bot.Builder.ITurnContext * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.IList<Microsoft.Bot.Schema.ChannelAccount>>
Public Overridable Function GetActivityMembersAsync (turnContext As ITurnContext, activityId As String, cancellationToken As CancellationToken) As Task(Of IList(Of ChannelAccount))

Parameters

turnContext
ITurnContext

The context object for the turn.

activityId
String

(Optional) Activity ID to enumerate. If not specified the current activities ID will be used.

cancellationToken
CancellationToken

Cancellation token.

Returns

List of Members of the activity.

Applies to