TeamsActivityHandler.OnTeamsTeamRestoredAsync 方法

定义

从连接器收到 Team Restored 事件活动时调用。 Team Restored 对应于还原团队的用户。

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

参数

teamInfo
TeamInfo

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

turnContext
ITurnContext<IConversationUpdateActivity>

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

cancellationToken
CancellationToken

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

返回

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

适用于