Language

ActionExecuteRouteBuilder.WithSelector(RouteSelector) Method

Definition

Sets a custom route selector that is additive to the basic Action.Execute matching (channel, activity type, invoke name, and verb).

public override Microsoft.Agents.Builder.App.AdaptiveCards.ActionExecuteRouteBuilder WithSelector(Microsoft.Agents.Builder.App.RouteSelector selector);
override this.WithSelector : Microsoft.Agents.Builder.App.RouteSelector -> Microsoft.Agents.Builder.App.AdaptiveCards.ActionExecuteRouteBuilder
Public Overrides Function WithSelector (selector As RouteSelector) As ActionExecuteRouteBuilder

Parameters

selector
RouteSelector

The route selector that defines additional criteria for matching requests to the route. The supplied selector does not need to validate base route properties like ChannelId, Agentic, activity type, invoke name, or verb.

Returns

The current ActionExecuteRouteBuilder instance with the specified selector applied.

Applies to