TeamsInfo.GetTeamDetailsAsync(ITurnContext, String, CancellationToken) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.