Language

ConversationClient.GetConversationsAsync Method

Definition

Gets the conversations in which the bot has participated.

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

Parameters

serviceUrl
Uri

The service URL for the bot. Cannot be null.

continuationToken
String

Optional continuation token for pagination.

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 the conversations and an optional continuation token.

Exceptions

Thrown if the conversations could not be retrieved successfully.

Applies to