TeamsActivityHandler.OnTeamsMembersAddedAsync 方法

定义

在派生类中重写此项,以便为机器人以外的成员何时加入通道提供逻辑,例如机器人的欢迎逻辑。

protected virtual System.Threading.Tasks.Task OnTeamsMembersAddedAsync (System.Collections.Generic.IList<Microsoft.Bot.Schema.Teams.TeamsChannelAccount> teamsMembersAdded, Microsoft.Bot.Schema.Teams.TeamInfo teamInfo, Microsoft.Bot.Builder.ITurnContext<Microsoft.Bot.Schema.IConversationUpdateActivity> turnContext, System.Threading.CancellationToken cancellationToken);
abstract member OnTeamsMembersAddedAsync : 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.OnTeamsMembersAddedAsync : 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 OnTeamsMembersAddedAsync (teamsMembersAdded As IList(Of TeamsChannelAccount), teamInfo As TeamInfo, turnContext As ITurnContext(Of IConversationUpdateActivity), cancellationToken As CancellationToken) As Task

参数

teamsMembersAdded
IList<TeamsChannelAccount>

添加到通道的所有成员的列表,如聊天更新活动所述。

teamInfo
TeamInfo

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

turnContext
ITurnContext<IConversationUpdateActivity>

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

cancellationToken
CancellationToken

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

返回

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

适用于