RouteBuilderBase<TBuilder>.Build 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.
Builds and returns the configured route instance after validating required components.
public Microsoft.Agents.Builder.App.Route Build();
member this.Build : unit -> Microsoft.Agents.Builder.App.Route
Public Function Build () As Route
Returns
The constructed Route instance representing the current route configuration.
Remarks
Throws an exception if the route's selector or handler is not set. Ensure that both components are configured before calling this method. The return Route can be used in AddRoute(Route).