TeamsActivityHandler.OnTeamsMembersRemovedAsync(IList<TeamsChannelAccount>, TeamInfo, ITurnContext<IConversationUpdateActivity>, CancellationToken) 메서드

정의

이를 파생 클래스에서 재정의 하 여 봇 이외의 멤버가 채널을 벗어날 경우 (예: 봇의 우수한 bye 논리)에 대 한 논리를 제공 합니다.Override this in a derived class to provide logic for when members other than the bot leave the channel, such as your bot's good-bye logic.

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>

대화 업데이트 작업에 설명 된 대로 채널에서 제거 된 모든 멤버의 목록입니다.A list of all the members removed from the channel, as described by the conversation update activity.

teamInfo
TeamInfo

팀을 나타내는 팀 정보 개체입니다.The team info object representing the team.

turnContext
ITurnContext<IConversationUpdateActivity>

이를 위한 강력한 형식의 컨텍스트 개체입니다.A strongly-typed context object for this turn.

cancellationToken
CancellationToken

취소의 통지를 받기 위해 다른 개체나 스레드에서 사용할 수 있는 취소 토큰입니다.A cancellation token that can be used by other objects or threads to receive notice of cancellation.

반환

Task

실행 대기 중인 작업을 나타내는 작업입니다.A task that represents the work queued to execute.

적용 대상