Freigeben über


AdaptiveCard.OnActionExecute Method

Definition

Overloads

OnActionExecute(MultipleRouteSelector, ActionExecuteHandler)

Adds a route to the application for handling Adaptive Card Action.Execute events.

OnActionExecute(RouteSelector, ActionExecuteHandler)

Adds a route to the application for handling Adaptive Card Action.Execute events.

OnActionExecute(String, ActionExecuteHandler)

Adds a route to the application for handling Adaptive Card Action.Execute events.

OnActionExecute(Regex, ActionExecuteHandler)

Adds a route to the application for handling Adaptive Card Action.Execute events.

OnActionExecute(MultipleRouteSelector, ActionExecuteHandler)

Adds a route to the application for handling Adaptive Card Action.Execute events.

public Microsoft.Agents.Builder.App.AgentApplication OnActionExecute(Microsoft.Agents.Builder.App.MultipleRouteSelector routeSelectors, Microsoft.Agents.Builder.App.AdaptiveCards.ActionExecuteHandler handler);
member this.OnActionExecute : Microsoft.Agents.Builder.App.MultipleRouteSelector * Microsoft.Agents.Builder.App.AdaptiveCards.ActionExecuteHandler -> Microsoft.Agents.Builder.App.AgentApplication
Public Function OnActionExecute (routeSelectors As MultipleRouteSelector, handler As ActionExecuteHandler) As AgentApplication

Parameters

routeSelectors
MultipleRouteSelector

Combination of String, Regex, and RouteSelectorAsync selectors.

handler
ActionExecuteHandler

Function to call when the route is triggered.

Returns

The application instance for chaining purposes.

Applies to

OnActionExecute(RouteSelector, ActionExecuteHandler)

Adds a route to the application for handling Adaptive Card Action.Execute events.

public Microsoft.Agents.Builder.App.AgentApplication OnActionExecute(Microsoft.Agents.Builder.App.RouteSelector routeSelector, Microsoft.Agents.Builder.App.AdaptiveCards.ActionExecuteHandler handler);
member this.OnActionExecute : Microsoft.Agents.Builder.App.RouteSelector * Microsoft.Agents.Builder.App.AdaptiveCards.ActionExecuteHandler -> Microsoft.Agents.Builder.App.AgentApplication
Public Function OnActionExecute (routeSelector As RouteSelector, handler As ActionExecuteHandler) As AgentApplication

Parameters

routeSelector
RouteSelector

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

handler
ActionExecuteHandler

Function to call when the route is triggered.

Returns

The application instance for chaining purposes.

Applies to

OnActionExecute(String, ActionExecuteHandler)

Adds a route to the application for handling Adaptive Card Action.Execute events.

public Microsoft.Agents.Builder.App.AgentApplication OnActionExecute(string verb, Microsoft.Agents.Builder.App.AdaptiveCards.ActionExecuteHandler handler);
member this.OnActionExecute : string * Microsoft.Agents.Builder.App.AdaptiveCards.ActionExecuteHandler -> Microsoft.Agents.Builder.App.AgentApplication
Public Function OnActionExecute (verb As String, handler As ActionExecuteHandler) As AgentApplication

Parameters

verb
String

The named action to be handled.

handler
ActionExecuteHandler

Function to call when the action is triggered.

Returns

The application instance for chaining purposes.

Applies to

OnActionExecute(Regex, ActionExecuteHandler)

Adds a route to the application for handling Adaptive Card Action.Execute events.

public Microsoft.Agents.Builder.App.AgentApplication OnActionExecute(System.Text.RegularExpressions.Regex verbPattern, Microsoft.Agents.Builder.App.AdaptiveCards.ActionExecuteHandler handler);
member this.OnActionExecute : System.Text.RegularExpressions.Regex * Microsoft.Agents.Builder.App.AdaptiveCards.ActionExecuteHandler -> Microsoft.Agents.Builder.App.AgentApplication
Public Function OnActionExecute (verbPattern As Regex, handler As ActionExecuteHandler) As AgentApplication

Parameters

verbPattern
Regex

Regular expression to match against the named action to be handled.

handler
ActionExecuteHandler

Function to call when the action is triggered.

Returns

The application instance for chaining purposes.

Applies to