Language

ConversationClient.GetActivityMembersAsync Method

Definition

Gets the members of a specific activity.

public virtual System.Threading.Tasks.Task<System.Collections.Generic.IList<Microsoft.Teams.Core.Schema.ChannelAccount>> GetActivityMembersAsync(string conversationId, string activityId, Uri serviceUrl, Microsoft.Teams.Core.Http.BotRequestContext? requestContext = default, System.Collections.Generic.Dictionary<string,string>? customHeaders = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetActivityMembersAsync : string * string * Uri * Microsoft.Teams.Core.Http.BotRequestContext * System.Collections.Generic.Dictionary<string, string> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.IList<Microsoft.Teams.Core.Schema.ChannelAccount>>
override this.GetActivityMembersAsync : string * string * Uri * Microsoft.Teams.Core.Http.BotRequestContext * System.Collections.Generic.Dictionary<string, string> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.IList<Microsoft.Teams.Core.Schema.ChannelAccount>>
Public Overridable Function GetActivityMembersAsync (conversationId As String, activityId As String, serviceUrl As Uri, Optional requestContext As BotRequestContext = Nothing, Optional customHeaders As Dictionary(Of String, String) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of IList(Of ChannelAccount))

Parameters

conversationId
String

The ID of the conversation. Cannot be null or whitespace.

activityId
String

The ID of the activity. Cannot be null or whitespace.

serviceUrl
Uri

The service URL for the conversation. Cannot be null.

requestContext
BotRequestContext

Optional per-request properties (see BotRequestContext) to stamp onto the request's options.

customHeaders
Dictionary<String,String>

Optional custom headers to include in the request.

cancellationToken
CancellationToken

A cancellation token that can be used to cancel the operation.

Returns

A task that represents the asynchronous operation. The task result contains a list of members for the activity.

Exceptions

Thrown if the activity members could not be retrieved successfully.

Applies to