TeamsAppExtensions.OnTeamsConversationUpdate Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Registers a Teams conversation update handler for the specified conversation update event.
public static Microsoft.Agents.Builder.App.AgentApplication OnTeamsConversationUpdate(this Microsoft.Agents.Builder.App.AgentApplication app, string conversationUpdateEvent, Microsoft.Agents.Extensions.MSTeams.App.TeamsRouteHandler handler, ushort rank = 32767, string[] autoSignInHandlers = default, bool isAgenticOnly = false);
static member OnTeamsConversationUpdate : Microsoft.Agents.Builder.App.AgentApplication * string * Microsoft.Agents.Extensions.MSTeams.App.TeamsRouteHandler * uint16 * string[] * bool -> Microsoft.Agents.Builder.App.AgentApplication
<Extension()>
Public Function OnTeamsConversationUpdate (app As AgentApplication, conversationUpdateEvent As String, handler As TeamsRouteHandler, Optional rank As UShort = 32767, Optional autoSignInHandlers As String() = Nothing, Optional isAgenticOnly As Boolean = false) As AgentApplication
Parameters
- app
- AgentApplication
The agent application to configure.
- conversationUpdateEvent
- String
The conversation update event name to match.
- handler
- TeamsRouteHandler
The Teams-aware handler to invoke.
- rank
- UInt16
The route evaluation order. Lower values run first.
- autoSignInHandlers
- String[]
The OAuth sign-in handlers to associate with the route.
- isAgenticOnly
- Boolean
When true, the route only fires for agentic turns.
Returns
The configured agent application.