Language

MemberClient.GetAllAsync Method

Definition

Get all members of a conversation, automatically following pagination.

public System.Collections.Generic.IAsyncEnumerable<Microsoft.Teams.Apps.Schema.TeamsChannelAccount> GetAllAsync(string conversationId, int pageSize = 50, System.Collections.Generic.Dictionary<string,string>? additionalHeaders = default, System.Threading.CancellationToken cancellationToken = default);
member this.GetAllAsync : string * int * System.Collections.Generic.Dictionary<string, string> * System.Threading.CancellationToken -> System.Collections.Generic.IAsyncEnumerable<Microsoft.Teams.Apps.Schema.TeamsChannelAccount>
Public Function GetAllAsync (conversationId As String, Optional pageSize As Integer = 50, Optional additionalHeaders As Dictionary(Of String, String) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As IAsyncEnumerable(Of TeamsChannelAccount)

Parameters

conversationId
String
pageSize
Int32
additionalHeaders
Dictionary<String,String>
cancellationToken
CancellationToken

Returns

Remarks

Streams members across all pages by following the continuation token internally, for convenient await foreach iteration. Use GetPagedAsync(String, Int32, String, Dictionary<String,String>, CancellationToken) when you need explicit control over paging (for example, to persist the continuation token across requests and resume later).

Applies to