TeamsInfo.GetMembersAsync(ITurnContext, CancellationToken) Metod
Definition
Viktigt
En del information gäller för förhandsversionen av en produkt och kan komma att ändras avsevärt innan produkten blir allmänt tillgänglig. Microsoft lämnar inga garantier, uttryckliga eller underförstådda, avseende informationen som visas här.
Varning
Microsoft Teams is deprecating the non-paged version of the getMembers API which this method uses. Please use GetPagedTeamMembersAsync instead of this API.
Hämtar konversationsmedlemmarna i en en-mot-en- eller gruppchatt.
[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>> GetMembersAsync (Microsoft.Bot.Builder.ITurnContext turnContext, 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 GetMembersAsync : Microsoft.Bot.Builder.ITurnContext * System.Threading.CancellationToken -> System.Threading.Tasks.Task<seq<Microsoft.Bot.Schema.Teams.TeamsChannelAccount>>
Public Shared Function GetMembersAsync (turnContext As ITurnContext, Optional cancellationToken As CancellationToken = Nothing) As Task(Of IEnumerable(Of TeamsChannelAccount))
Parametrar
- turnContext
- ITurnContext
Aktivera kontext.
- cancellationToken
- CancellationToken
Annulleringstoken.
Returer
TeamsChannelAccount.
- Attribut