RouteConstraintBuilder Class
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.
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
Remarks
RouteConstraintBuilder allows iterative building a set of route constraints, and will merge multiple entries for the same key.
Constructors
RouteConstraintBuilder(IInlineConstraintResolver, String) |
Creates a new instance of RouteConstraintBuilder instance. |
Methods
AddConstraint(String, Object) |
Adds a constraint instance for the given key. |
AddResolvedConstraint(String, String) |
Adds a constraint for the given key, resolved by the IInlineConstraintResolver. |
Build() |
Builds a mapping of constraints. |
SetOptional(String) |
Sets the given key as optional. |