ConversationClient.GetConversationMembersAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the members of a conversation.
public virtual System.Threading.Tasks.Task<System.Collections.Generic.IList<Microsoft.Teams.Core.Schema.ChannelAccount>> GetConversationMembersAsync(string conversationId, Uri serviceUrl, Microsoft.Teams.Core.Http.BotRequestContext? requestContext = default, System.Collections.Generic.Dictionary<string,string>? customHeaders = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetConversationMembersAsync : 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.GetConversationMembersAsync : 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 GetConversationMembersAsync (conversationId 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.
- 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 conversation members.
Exceptions
Thrown if the members could not be retrieved successfully.