TeamsActivityHandler.OnTeamsMembersRemovedAsync 方法

定义

在派生类中重写此项,以便为机器人以外的成员何时离开通道提供逻辑,例如机器人的再见逻辑。

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

参数

teamsMembersRemoved
IList<TeamsChannelAccount>

从通道中删除的所有成员的列表,如对话更新活动所述。

teamInfo
TeamInfo

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

turnContext
ITurnContext<IConversationUpdateActivity>

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

cancellationToken
CancellationToken

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

返回

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

适用于