Share via


NotificationBot.FindAllMembersAsync Method

Definition

Returns all Member where predicate is true, and empty array otherwise.

public System.Threading.Tasks.Task<Microsoft.TeamsFx.Conversation.Member[]> FindAllMembersAsync (Func<Microsoft.TeamsFx.Conversation.Member,System.Threading.Tasks.Task<bool>> predicate, Microsoft.TeamsFx.Conversation.SearchScope scope = Microsoft.TeamsFx.Conversation.SearchScope.All, System.Threading.CancellationToken cancellationToken = default);
member this.FindAllMembersAsync : Func<Microsoft.TeamsFx.Conversation.Member, System.Threading.Tasks.Task<bool>> * Microsoft.TeamsFx.Conversation.SearchScope * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamsFx.Conversation.Member[]>
Public Function FindAllMembersAsync (predicate As Func(Of Member, Task(Of Boolean)), Optional scope As SearchScope = Microsoft.TeamsFx.Conversation.SearchScope.All, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Member())

Parameters

predicate
Func<Member,Task<Boolean>>

Find calls predicate for each member of the installation.

scope
SearchScope

The scope to find members from the installations. (personal chat, group chat, Teams channel)

cancellationToken
CancellationToken

The cancellation token.

Returns

An array of Member where predicate is true, and empty array otherwise.

Exceptions

Throws when predicate is null.

Applies to