TeamsInfo.GetTeamMembersAsync(ITurnContext, String, CancellationToken) 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.
Caution
Microsoft Teams is deprecating the non-paged version of the getMembers API which this method uses. Please use GetPagedTeamMembersAsync instead of this API.
Gets the list of TeamsChannelAccounts within a team. This only works in teams scoped conversations.
[System.Obsolete("Microsoft Teams is deprecating the non-paged version of the getMembers API which this method uses. Please use GetPagedTeamMembersAsync instead of this API.")]
public static System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<Microsoft.Bot.Schema.Teams.TeamsChannelAccount>> GetTeamMembersAsync (Microsoft.Bot.Builder.ITurnContext turnContext, string teamId = default, System.Threading.CancellationToken cancellationToken = default);
[<System.Obsolete("Microsoft Teams is deprecating the non-paged version of the getMembers API which this method uses. Please use GetPagedTeamMembersAsync instead of this API.")>]
static member GetTeamMembersAsync : Microsoft.Bot.Builder.ITurnContext * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<seq<Microsoft.Bot.Schema.Teams.TeamsChannelAccount>>
Public Shared Function GetTeamMembersAsync (turnContext As ITurnContext, Optional teamId As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of IEnumerable(Of TeamsChannelAccount))
Parameters
- turnContext
- ITurnContext
Turn context.
- teamId
- String
ID of the Teams team.
- cancellationToken
- CancellationToken
cancellation token.
Returns
TeamsChannelAccount.
- Attributes