ChannelUpdateHandler Delegate
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.
Represents a delegate that handles channel update events in Microsoft Teams.
public delegate System.Threading.Tasks.Task ChannelUpdateHandler(ITeamsTurnContext turnContext, ITurnState turnState, TeamsChannel data, CancellationToken cancellationToken);
type ChannelUpdateHandler = delegate of ITeamsTurnContext * ITurnState * TeamsChannel * CancellationToken -> Task
Public Delegate Function ChannelUpdateHandler(turnContext As ITeamsTurnContext, turnState As ITurnState, data As TeamsChannel, 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
- TeamsChannel
The channel data associated with the update event, containing details about the Microsoft Teams channel 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 channel update event.
Remarks
Use this delegate to implement custom logic in response to channel update events, such as when a channel is created, renamed, or deleted in Microsoft Teams.