Sprog

ActionExecuteRouteBuilder.WithHandler Method

Definition

Overloads

Name Description
WithHandler(ActionExecuteHandler)

Configures the route to handle Action.Execute events using the specified handler.

WithHandler(ActionExecuteValueHandler)

Configures the route to handle Action.Execute events using the specified handler.

WithHandler(ActionExecuteHandler)

Configures the route to handle Action.Execute events using the specified handler.

public Microsoft.Agents.Builder.App.AdaptiveCards.ActionExecuteRouteBuilder WithHandler(Microsoft.Agents.Builder.App.AdaptiveCards.ActionExecuteHandler handler);
member this.WithHandler : Microsoft.Agents.Builder.App.AdaptiveCards.ActionExecuteHandler -> Microsoft.Agents.Builder.App.AdaptiveCards.ActionExecuteRouteBuilder
Public Function WithHandler (handler As ActionExecuteHandler) As ActionExecuteRouteBuilder

Parameters

handler
ActionExecuteHandler

The handler to invoke when a matching Action.Execute activity is received. Cannot be null.

Returns

The current ActionExecuteRouteBuilder instance for method chaining.

Applies to

WithHandler(ActionExecuteValueHandler)

Configures the route to handle Action.Execute events using the specified handler.

public Microsoft.Agents.Builder.App.AdaptiveCards.ActionExecuteRouteBuilder WithHandler(Microsoft.Agents.Builder.App.AdaptiveCards.ActionExecuteValueHandler handler);
member this.WithHandler : Microsoft.Agents.Builder.App.AdaptiveCards.ActionExecuteValueHandler -> Microsoft.Agents.Builder.App.AdaptiveCards.ActionExecuteRouteBuilder
Public Function WithHandler (handler As ActionExecuteValueHandler) As ActionExecuteRouteBuilder

Parameters

handler
ActionExecuteValueHandler

The handler to invoke when a matching Action.Execute activity is received. Cannot be null.

Returns

The current ActionExecuteRouteBuilder instance for method chaining.

Applies to