Freigeben über


MessageExtension.OnAgentMessagePreviewEdit Method

Definition

Overloads

OnAgentMessagePreviewEdit(MultipleRouteSelector, BotMessagePreviewEditHandlerAsync)

Registers a handler to process the 'edit' action of a message that's being previewed by the user prior to sending.

OnAgentMessagePreviewEdit(RouteSelector, BotMessagePreviewEditHandlerAsync)

Registers a handler to process the 'edit' action of a message that's being previewed by the user prior to sending.

OnAgentMessagePreviewEdit(String, BotMessagePreviewEditHandlerAsync)

Registers a handler to process the 'edit' action of a message that's being previewed by the user prior to sending.

OnAgentMessagePreviewEdit(Regex, BotMessagePreviewEditHandlerAsync)

Registers a handler to process the 'edit' action of a message that's being previewed by the user prior to sending.

OnAgentMessagePreviewEdit(MultipleRouteSelector, BotMessagePreviewEditHandlerAsync)

Registers a handler to process the 'edit' action of a message that's being previewed by the user prior to sending.

public Microsoft.Agents.Builder.App.AgentApplication OnAgentMessagePreviewEdit(Microsoft.Agents.Builder.App.MultipleRouteSelector routeSelectors, Microsoft.Agents.Extensions.Teams.App.MessageExtensions.BotMessagePreviewEditHandlerAsync handler);
member this.OnAgentMessagePreviewEdit : Microsoft.Agents.Builder.App.MultipleRouteSelector * Microsoft.Agents.Extensions.Teams.App.MessageExtensions.BotMessagePreviewEditHandlerAsync -> Microsoft.Agents.Builder.App.AgentApplication
Public Function OnAgentMessagePreviewEdit (routeSelectors As MultipleRouteSelector, handler As BotMessagePreviewEditHandlerAsync) As AgentApplication

Parameters

routeSelectors
MultipleRouteSelector

Combination of String, Regex, and RouteSelectorAsync selectors.

handler
BotMessagePreviewEditHandlerAsync

Function to call when the route is triggered.

Returns

The application instance for chaining purposes.

Applies to

OnAgentMessagePreviewEdit(RouteSelector, BotMessagePreviewEditHandlerAsync)

Registers a handler to process the 'edit' action of a message that's being previewed by the user prior to sending.

public Microsoft.Agents.Builder.App.AgentApplication OnAgentMessagePreviewEdit(Microsoft.Agents.Builder.App.RouteSelector routeSelector, Microsoft.Agents.Extensions.Teams.App.MessageExtensions.BotMessagePreviewEditHandlerAsync handler);
member this.OnAgentMessagePreviewEdit : Microsoft.Agents.Builder.App.RouteSelector * Microsoft.Agents.Extensions.Teams.App.MessageExtensions.BotMessagePreviewEditHandlerAsync -> Microsoft.Agents.Builder.App.AgentApplication
Public Function OnAgentMessagePreviewEdit (routeSelector As RouteSelector, handler As BotMessagePreviewEditHandlerAsync) As AgentApplication

Parameters

routeSelector
RouteSelector

Function that's used to select a route. The function returning true triggers the route.

handler
BotMessagePreviewEditHandlerAsync

Function to call when the route is triggered.

Returns

The application instance for chaining purposes.

Applies to

OnAgentMessagePreviewEdit(String, BotMessagePreviewEditHandlerAsync)

Registers a handler to process the 'edit' action of a message that's being previewed by the user prior to sending.

public Microsoft.Agents.Builder.App.AgentApplication OnAgentMessagePreviewEdit(string commandId, Microsoft.Agents.Extensions.Teams.App.MessageExtensions.BotMessagePreviewEditHandlerAsync handler);
member this.OnAgentMessagePreviewEdit : string * Microsoft.Agents.Extensions.Teams.App.MessageExtensions.BotMessagePreviewEditHandlerAsync -> Microsoft.Agents.Builder.App.AgentApplication
Public Function OnAgentMessagePreviewEdit (commandId As String, handler As BotMessagePreviewEditHandlerAsync) As AgentApplication

Parameters

commandId
String

ID of the command to register the handler for.

handler
BotMessagePreviewEditHandlerAsync

Function to call when the command is received.

Returns

The application instance for chaining purposes.

Applies to

OnAgentMessagePreviewEdit(Regex, BotMessagePreviewEditHandlerAsync)

Registers a handler to process the 'edit' action of a message that's being previewed by the user prior to sending.

public Microsoft.Agents.Builder.App.AgentApplication OnAgentMessagePreviewEdit(System.Text.RegularExpressions.Regex commandIdPattern, Microsoft.Agents.Extensions.Teams.App.MessageExtensions.BotMessagePreviewEditHandlerAsync handler);
member this.OnAgentMessagePreviewEdit : System.Text.RegularExpressions.Regex * Microsoft.Agents.Extensions.Teams.App.MessageExtensions.BotMessagePreviewEditHandlerAsync -> Microsoft.Agents.Builder.App.AgentApplication
Public Function OnAgentMessagePreviewEdit (commandIdPattern As Regex, handler As BotMessagePreviewEditHandlerAsync) As AgentApplication

Parameters

commandIdPattern
Regex

Regular expression to match against the ID of the command to register the handler for.

handler
BotMessagePreviewEditHandlerAsync

Function to call when the command is received.

Returns

The application instance for chaining purposes.

Applies to