NotificationBot.FindAllMembersAsync 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.
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
- 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.