DirectRouteFactoryContext.CreateBuilder 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
CreateBuilder(String) |
Creates a route builder that can build a route matching this context. |
CreateBuilder(String, IInlineConstraintResolver) |
Creates a route builder that can build a route matching this context. |
CreateBuilder(String)
Creates a route builder that can build a route matching this context.
public System.Web.Mvc.Routing.IDirectRouteBuilder CreateBuilder(string template);
member this.CreateBuilder : string -> System.Web.Mvc.Routing.IDirectRouteBuilder
Public Function CreateBuilder (template As String) As IDirectRouteBuilder
Parameters
- template
- String
The route template.
Returns
A route builder that can build a route matching this context.
Applies to
CreateBuilder(String, IInlineConstraintResolver)
Creates a route builder that can build a route matching this context.
public System.Web.Mvc.Routing.IDirectRouteBuilder CreateBuilder(string template, System.Web.Mvc.Routing.IInlineConstraintResolver constraintResolver);
member this.CreateBuilder : string * System.Web.Mvc.Routing.IInlineConstraintResolver -> System.Web.Mvc.Routing.IDirectRouteBuilder
Public Function CreateBuilder (template As String, constraintResolver As IInlineConstraintResolver) As IDirectRouteBuilder
Parameters
- template
- String
The route template.
- constraintResolver
- IInlineConstraintResolver
The inline constraint resolver to use, if any; otherwise, null.
Returns
A route builder that can build a route matching this context.