Dela via


TeamsInfo.GetTeamDetailsAsync(ITurnContext, String, CancellationToken) Metod

Definition

Hämtar information om det angivna team-ID:t. Detta fungerar bara i teams begränsade konversationer.

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)

Parametrar

turnContext
ITurnContext

Aktivera kontext.

teamId
String

ID för Teams-teamet.

cancellationToken
CancellationToken

Annulleringstoken.

Returer

Teaminformation.

Gäller för