Dela via


TeamsInfo.GetTeamChannelsAsync Metod

Definition

Returnerar en lista över kanaler i ett team. Detta fungerar bara i teamomfattande konversationer.

public static System.Threading.Tasks.Task<System.Collections.Generic.IList<Microsoft.Bot.Schema.Teams.ChannelInfo>> GetTeamChannelsAsync (Microsoft.Bot.Builder.ITurnContext turnContext, string teamId = default, System.Threading.CancellationToken cancellationToken = default);
static member GetTeamChannelsAsync : Microsoft.Bot.Builder.ITurnContext * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.IList<Microsoft.Bot.Schema.Teams.ChannelInfo>>
Public Shared Function GetTeamChannelsAsync (turnContext As ITurnContext, Optional teamId As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of IList(Of ChannelInfo))

Parametrar

turnContext
ITurnContext

Aktivera kontext.

teamId
String

ID för Teams-teamet.

cancellationToken
CancellationToken

annulleringstoken.

Returer

Teaminformation.

Gäller för