Share via


ConversationsExtensions.GetConversationsAsync Method

Definition

GetConversations.

public static System.Threading.Tasks.Task<Microsoft.Bot.Connector.ConversationsResult> GetConversationsAsync (this Microsoft.Bot.Connector.IConversations operations, string continuationToken = default, System.Threading.CancellationToken cancellationToken = default);
public static System.Threading.Tasks.Task<Microsoft.Bot.Schema.ConversationsResult> GetConversationsAsync (this Microsoft.Bot.Connector.IConversations operations, string continuationToken = default, System.Threading.CancellationToken cancellationToken = default);
static member GetConversationsAsync : Microsoft.Bot.Connector.IConversations * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Bot.Connector.ConversationsResult>
static member GetConversationsAsync : Microsoft.Bot.Connector.IConversations * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Bot.Schema.ConversationsResult>
<Extension()>
Public Function GetConversationsAsync (operations As IConversations, Optional continuationToken As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ConversationsResult)

Parameters

operations
IConversations

The operations group for this extension method.

continuationToken
String

skip or continuation token.

cancellationToken
CancellationToken

The cancellation token.

Returns

The Conversation in which this bot has participated.

Remarks

List the Conversations in which this bot has participated.

GET from this method with a skip token

The return value is a ConversationsResult, which contains an array of ConversationMembers and a skip token. If the skip token is not empty, then there are further values to be returned. Call this method again with the returned token to get more values.

Each ConversationMembers object contains the ID of the conversation and an array of ChannelAccounts that describe the members of the conversation.

Applies to