MessageExtension.OnAgentMessagePreviewSend 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.
Overloads
| OnAgentMessagePreviewSend(MultipleRouteSelector, BotMessagePreviewSendHandler) |
Registers a handler to process the 'send' action of a message that's being previewed by the user prior to sending. |
| OnAgentMessagePreviewSend(RouteSelector, BotMessagePreviewSendHandler) |
Registers a handler to process the 'send' action of a message that's being previewed by the user prior to sending. |
| OnAgentMessagePreviewSend(String, BotMessagePreviewSendHandler) |
Registers a handler to process the 'send' action of a message that's being previewed by the user prior to sending. |
| OnAgentMessagePreviewSend(Regex, BotMessagePreviewSendHandler) |
Registers a handler to process the 'send' action of a message that's being previewed by the user prior to sending. |
OnAgentMessagePreviewSend(MultipleRouteSelector, BotMessagePreviewSendHandler)
Registers a handler to process the 'send' action of a message that's being previewed by the user prior to sending.
public Microsoft.Agents.Builder.App.AgentApplication OnAgentMessagePreviewSend(Microsoft.Agents.Builder.App.MultipleRouteSelector routeSelectors, Microsoft.Agents.Extensions.Teams.App.MessageExtensions.BotMessagePreviewSendHandler handler);
member this.OnAgentMessagePreviewSend : Microsoft.Agents.Builder.App.MultipleRouteSelector * Microsoft.Agents.Extensions.Teams.App.MessageExtensions.BotMessagePreviewSendHandler -> Microsoft.Agents.Builder.App.AgentApplication
Public Function OnAgentMessagePreviewSend (routeSelectors As MultipleRouteSelector, handler As BotMessagePreviewSendHandler) As AgentApplication
Parameters
- routeSelectors
- MultipleRouteSelector
Combination of String, Regex, and RouteSelectorAsync selectors.
- handler
- BotMessagePreviewSendHandler
Function to call when the route is triggered.
Returns
The application instance for chaining purposes.
Applies to
OnAgentMessagePreviewSend(RouteSelector, BotMessagePreviewSendHandler)
Registers a handler to process the 'send' action of a message that's being previewed by the user prior to sending.
public Microsoft.Agents.Builder.App.AgentApplication OnAgentMessagePreviewSend(Microsoft.Agents.Builder.App.RouteSelector routeSelector, Microsoft.Agents.Extensions.Teams.App.MessageExtensions.BotMessagePreviewSendHandler handler);
member this.OnAgentMessagePreviewSend : Microsoft.Agents.Builder.App.RouteSelector * Microsoft.Agents.Extensions.Teams.App.MessageExtensions.BotMessagePreviewSendHandler -> Microsoft.Agents.Builder.App.AgentApplication
Public Function OnAgentMessagePreviewSend (routeSelector As RouteSelector, handler As BotMessagePreviewSendHandler) As AgentApplication
Parameters
- routeSelector
- RouteSelector
Function that's used to select a route. The function returning true triggers the route.
- handler
- BotMessagePreviewSendHandler
Function to call when the route is triggered.
Returns
The application instance for chaining purposes.
Applies to
OnAgentMessagePreviewSend(String, BotMessagePreviewSendHandler)
Registers a handler to process the 'send' action of a message that's being previewed by the user prior to sending.
public Microsoft.Agents.Builder.App.AgentApplication OnAgentMessagePreviewSend(string commandId, Microsoft.Agents.Extensions.Teams.App.MessageExtensions.BotMessagePreviewSendHandler handler);
member this.OnAgentMessagePreviewSend : string * Microsoft.Agents.Extensions.Teams.App.MessageExtensions.BotMessagePreviewSendHandler -> Microsoft.Agents.Builder.App.AgentApplication
Public Function OnAgentMessagePreviewSend (commandId As String, handler As BotMessagePreviewSendHandler) As AgentApplication
Parameters
- commandId
- String
ID of the command to register the handler for.
- handler
- BotMessagePreviewSendHandler
Function to call when the command is received.
Returns
The application instance for chaining purposes.
Applies to
OnAgentMessagePreviewSend(Regex, BotMessagePreviewSendHandler)
Registers a handler to process the 'send' action of a message that's being previewed by the user prior to sending.
public Microsoft.Agents.Builder.App.AgentApplication OnAgentMessagePreviewSend(System.Text.RegularExpressions.Regex commandIdPattern, Microsoft.Agents.Extensions.Teams.App.MessageExtensions.BotMessagePreviewSendHandler handler);
member this.OnAgentMessagePreviewSend : System.Text.RegularExpressions.Regex * Microsoft.Agents.Extensions.Teams.App.MessageExtensions.BotMessagePreviewSendHandler -> Microsoft.Agents.Builder.App.AgentApplication
Public Function OnAgentMessagePreviewSend (commandIdPattern As Regex, handler As BotMessagePreviewSendHandler) As AgentApplication
Parameters
- commandIdPattern
- Regex
Regular expression to match against the ID of the command to register the handler for.
- handler
- BotMessagePreviewSendHandler
Function to call when the command is received.
Returns
The application instance for chaining purposes.