TeamsConversationUpdateRouteBuilder.WithUpdateEvent(String) Method

Definition

Configures the route to match a specific TeamsConversationUpdateEvents, such as members being added or removed.

public Microsoft.Agents.Extensions.Teams.App.Builders.TeamsConversationUpdateRouteBuilder WithUpdateEvent(string eventName);
member this.WithUpdateEvent : string -> Microsoft.Agents.Extensions.Teams.App.Builders.TeamsConversationUpdateRouteBuilder
Public Function WithUpdateEvent (eventName As String) As TeamsConversationUpdateRouteBuilder

Parameters

eventName
String

The name of the conversation update event to match. Common values include events for members being added or removed. Cannot be null.

Returns

The current ConversationUpdateRouteBuilder instance for method chaining.

Remarks

Use this method to restrict the route to trigger only for a particular conversation update event. If the specified event is not recognized, the route will match any conversation update activity.

Applies to