RouteConstraintBuilder Class
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.
A builder for produding a mapping of keys to see IRouteConstraint.
public ref class RouteConstraintBuilder
public class RouteConstraintBuilder
type RouteConstraintBuilder = class
Public Class RouteConstraintBuilder
- Inheritance
-
RouteConstraintBuilder
RouteConstraintBuilder allows iterative building a set of route constraints, and will merge multiple entries for the same key.
Route |
Creates a new instance of RouteConstraintBuilder instance. |
Add |
Adds a constraint instance for the given key. |
Add |
Adds a constraint for the given key, resolved by the IInlineConstraintResolver. |
Build() |
Builds a mapping of constraints. |
Set |
Sets the given key as optional. |
Produk | Versi |
---|---|
ASP.NET Core | 1.0, 1.1, 2.0, 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0 |