TeamsActivityHandler.OnTeamsMeetingParticipantsLeaveAsync 方法

定义

从连接器接收 Teams 参与者离开事件活动时调用。 重写派生类中的此项,以便在删除会议参与者时提供逻辑。

protected virtual System.Threading.Tasks.Task OnTeamsMeetingParticipantsLeaveAsync (Microsoft.Bot.Schema.Teams.MeetingParticipantsEventDetails meeting, Microsoft.Bot.Builder.ITurnContext<Microsoft.Bot.Schema.IEventActivity> turnContext, System.Threading.CancellationToken cancellationToken);
abstract member OnTeamsMeetingParticipantsLeaveAsync : Microsoft.Bot.Schema.Teams.MeetingParticipantsEventDetails * Microsoft.Bot.Builder.ITurnContext<Microsoft.Bot.Schema.IEventActivity> * System.Threading.CancellationToken -> System.Threading.Tasks.Task
override this.OnTeamsMeetingParticipantsLeaveAsync : Microsoft.Bot.Schema.Teams.MeetingParticipantsEventDetails * Microsoft.Bot.Builder.ITurnContext<Microsoft.Bot.Schema.IEventActivity> * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Protected Overridable Function OnTeamsMeetingParticipantsLeaveAsync (meeting As MeetingParticipantsEventDetails, turnContext As ITurnContext(Of IEventActivity), cancellationToken As CancellationToken) As Task

参数

meeting
MeetingParticipantsEventDetails

会议的详细信息。

turnContext
ITurnContext<IEventActivity>

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

cancellationToken
CancellationToken

其他对象或线程可以使用的取消令牌来接收取消通知。

返回

表示要执行的工作的任务。

适用于