次の方法で共有


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。

属性

適用対象