TeamsActivityHandler.OnTeamsChannelDeletedAsync 方法

定义

从连接器收到 Channel Deleted 事件活动时调用。 已删除频道对应于删除现有通道的用户。

protected virtual System.Threading.Tasks.Task OnTeamsChannelDeletedAsync (Microsoft.Bot.Schema.Teams.ChannelInfo channelInfo, Microsoft.Bot.Schema.Teams.TeamInfo teamInfo, Microsoft.Bot.Builder.ITurnContext<Microsoft.Bot.Schema.IConversationUpdateActivity> turnContext, System.Threading.CancellationToken cancellationToken);
abstract member OnTeamsChannelDeletedAsync : Microsoft.Bot.Schema.Teams.ChannelInfo * Microsoft.Bot.Schema.Teams.TeamInfo * Microsoft.Bot.Builder.ITurnContext<Microsoft.Bot.Schema.IConversationUpdateActivity> * System.Threading.CancellationToken -> System.Threading.Tasks.Task
override this.OnTeamsChannelDeletedAsync : Microsoft.Bot.Schema.Teams.ChannelInfo * Microsoft.Bot.Schema.Teams.TeamInfo * Microsoft.Bot.Builder.ITurnContext<Microsoft.Bot.Schema.IConversationUpdateActivity> * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Protected Overridable Function OnTeamsChannelDeletedAsync (channelInfo As ChannelInfo, teamInfo As TeamInfo, turnContext As ITurnContext(Of IConversationUpdateActivity), cancellationToken As CancellationToken) As Task

参数

channelInfo
ChannelInfo

描述通道的通道信息对象。

teamInfo
TeamInfo

表示团队的团队信息对象。

turnContext
ITurnContext<IConversationUpdateActivity>

此轮次的强类型上下文对象。

cancellationToken
CancellationToken

可由其他对象或线程用以接收取消通知的取消标记。

返回

表示排队等待执行的工作的任务。

适用于