Share via


TeamsInfo.GetTeamDetailsAsync(ITurnContext, String, CancellationToken) Method

Definition

Gets the details for the given team id. This only works in teams scoped conversations.

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

Parameters

turnContext
ITurnContext

Turn context.

teamId
String

The id of the Teams team.

cancellationToken
CancellationToken

Cancellation token.

Returns

Team Details.

Applies to