Language

TeamUpdateHandler Delegate

Definition

Represents a delegate that handles team update events in Microsoft Teams.

public delegate System.Threading.Tasks.Task TeamUpdateHandler(ITeamsTurnContext turnContext, ITurnState turnState, Team data, CancellationToken cancellationToken);
type TeamUpdateHandler = delegate of ITeamsTurnContext * ITurnState * Team * CancellationToken -> Task
Public Delegate Function TeamUpdateHandler(turnContext As ITeamsTurnContext, turnState As ITurnState, data As Team, cancellationToken As CancellationToken) As Task 

Parameters

turnContext
ITeamsTurnContext

The context for the current conversation turn.

turnState
ITurnState

The state object that stores arbitrary data for this turn.

data
Team

The data associated with the update event, containing details about the team that triggered the event.

cancellationToken
CancellationToken

A cancellation token that can be used to request cancellation of the asynchronous operation.

Return Value

A task that represents the asynchronous operation of handling the team update event.

Remarks

Use this delegate to implement custom logic in response to team update events, such as when a team is created, renamed, or deleted in Microsoft Teams.

Applies to