다음을 통해 공유


TeamsInfo.GetTeamMembersAsync(ITurnContext, String, CancellationToken) 메서드

정의

주의

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

팀 내의 TeamsChannelAccounts 목록을 가져옵니다. 이는 팀 범위 대화에서만 작동합니다.

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

매개 변수

turnContext
ITurnContext

컨텍스트를 설정합니다.

teamId
String

Teams 팀의 ID입니다.

cancellationToken
CancellationToken

취소 토큰입니다.

반환

TeamsChannelAccount.

특성

적용 대상