MemberClient.GetAllAsync 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.
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).