AdaptiveCard.OnSearch 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
| Name | Description |
|---|---|
| OnSearch(MultipleRouteSelector, SearchHandler) |
Adds a route to the application for handling Adaptive Card dynamic search events. |
| OnSearch(RouteSelector, SearchHandler) |
Adds a route to the application for handling Adaptive Card dynamic search events. |
| OnSearch(String, SearchHandler) |
Adds a route to the application for handling Adaptive Card dynamic search events. |
| OnSearch(Regex, SearchHandler) |
Adds a route to the application for handling Adaptive Card dynamic search events. |
OnSearch(MultipleRouteSelector, SearchHandler)
Adds a route to the application for handling Adaptive Card dynamic search events.
public Microsoft.Agents.Builder.App.AgentApplication OnSearch(Microsoft.Agents.Builder.App.MultipleRouteSelector routeSelectors, Microsoft.Agents.Builder.App.AdaptiveCards.SearchHandler handler);
member this.OnSearch : Microsoft.Agents.Builder.App.MultipleRouteSelector * Microsoft.Agents.Builder.App.AdaptiveCards.SearchHandler -> Microsoft.Agents.Builder.App.AgentApplication
Public Function OnSearch (routeSelectors As MultipleRouteSelector, handler As SearchHandler) As AgentApplication
Parameters
- routeSelectors
- MultipleRouteSelector
Combination of String, Regex, and RouteSelectorAsync selectors.
- handler
- SearchHandler
Function to call when the route is triggered.
Returns
The application instance for chaining purposes.
Applies to
OnSearch(RouteSelector, SearchHandler)
Adds a route to the application for handling Adaptive Card dynamic search events.
public Microsoft.Agents.Builder.App.AgentApplication OnSearch(Microsoft.Agents.Builder.App.RouteSelector routeSelector, Microsoft.Agents.Builder.App.AdaptiveCards.SearchHandler handler);
member this.OnSearch : Microsoft.Agents.Builder.App.RouteSelector * Microsoft.Agents.Builder.App.AdaptiveCards.SearchHandler -> Microsoft.Agents.Builder.App.AgentApplication
Public Function OnSearch (routeSelector As RouteSelector, handler As SearchHandler) As AgentApplication
Parameters
- routeSelector
- RouteSelector
Function that's used to select a route. The function returning true triggers the route.
- handler
- SearchHandler
Function to call when the route is triggered.
Returns
The application instance for chaining purposes.
Applies to
OnSearch(String, SearchHandler)
Adds a route to the application for handling Adaptive Card dynamic search events.
public Microsoft.Agents.Builder.App.AgentApplication OnSearch(string dataset, Microsoft.Agents.Builder.App.AdaptiveCards.SearchHandler handler);
member this.OnSearch : string * Microsoft.Agents.Builder.App.AdaptiveCards.SearchHandler -> Microsoft.Agents.Builder.App.AgentApplication
Public Function OnSearch (dataset As String, handler As SearchHandler) As AgentApplication
Parameters
- dataset
- String
The dataset to be searched.
- handler
- SearchHandler
Function to call when the search is triggered.
Returns
The application instance for chaining purposes.
Applies to
OnSearch(Regex, SearchHandler)
Adds a route to the application for handling Adaptive Card dynamic search events.
public Microsoft.Agents.Builder.App.AgentApplication OnSearch(System.Text.RegularExpressions.Regex datasetPattern, Microsoft.Agents.Builder.App.AdaptiveCards.SearchHandler handler);
member this.OnSearch : System.Text.RegularExpressions.Regex * Microsoft.Agents.Builder.App.AdaptiveCards.SearchHandler -> Microsoft.Agents.Builder.App.AgentApplication
Public Function OnSearch (datasetPattern As Regex, handler As SearchHandler) As AgentApplication
Parameters
- datasetPattern
- Regex
Regular expression to match against the dataset to be searched.
- handler
- SearchHandler
Function to call when the search is triggered.
Returns
The application instance for chaining purposes.