Compartir a través de


TeamsInfo.GetTeamMembersAsync(ITurnContext, String, CancellationToken) Método

Definición

Precaución

Microsoft Teams is deprecating the non-paged version of the getMembers API which this method uses. Please use GetPagedTeamMembersAsync instead of this API.

Obtiene la lista de TeamsChannelAccounts dentro de un equipo. Esto solo funciona en conversaciones con ámbito de equipos.

[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))

Parámetros

turnContext
ITurnContext

Contexto de turno.

teamId
String

Id. del equipo de Teams.

cancellationToken
CancellationToken

token de cancelación.

Devoluciones

TeamsChannelAccount.

Atributos

Se aplica a