Share via


ConversationsExtensions.GetConversationMembersAsync Method

Definition

GetConversationMembers.

public static System.Threading.Tasks.Task<System.Collections.Generic.IList<Microsoft.Bot.Connector.ChannelAccount>> GetConversationMembersAsync (this Microsoft.Bot.Connector.IConversations operations, string conversationId, System.Threading.CancellationToken cancellationToken = default);
public static System.Threading.Tasks.Task<System.Collections.Generic.IList<Microsoft.Bot.Schema.ChannelAccount>> GetConversationMembersAsync (this Microsoft.Bot.Connector.IConversations operations, string conversationId, System.Threading.CancellationToken cancellationToken = default);
static member GetConversationMembersAsync : Microsoft.Bot.Connector.IConversations * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.IList<Microsoft.Bot.Connector.ChannelAccount>>
static member GetConversationMembersAsync : Microsoft.Bot.Connector.IConversations * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.IList<Microsoft.Bot.Schema.ChannelAccount>>
<Extension()>
Public Function GetConversationMembersAsync (operations As IConversations, conversationId 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.

cancellationToken
CancellationToken

The cancellation token.

Returns

A collection of members of a conversation.

Remarks

Enumerate the members of a conversation.

This REST API takes a ConversationId and returns an array of ChannelAccount objects representing the members of the conversation.

Applies to