TypeRouteBuilder.WithHandler(RouteHandler) 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.
Assigns the specified route handler to the current route and returns the updated builder instance.
public Microsoft.Agents.Builder.App.TypeRouteBuilder WithHandler(Microsoft.Agents.Builder.App.RouteHandler handler);
member this.WithHandler : Microsoft.Agents.Builder.App.RouteHandler -> Microsoft.Agents.Builder.App.TypeRouteBuilder
Public Function WithHandler (handler As RouteHandler) As TypeRouteBuilder
Parameters
- handler
- RouteHandler
The route handler to associate with the route. Cannot be null.
Returns
The current TypeRouteBuilder instance for method chaining.