Route constraints in ASP.NET Core allow developers to restrict the ______ of the data that matches a particular route parameter.

  • Type
  • Quantity
  • Visibility
  • Length
Route constraints enable you to define restrictions on the data that can be matched by a route parameter. This restriction is usually based on the type of data expected for the parameter. For example, {id:int} enforces that the id parameter must be an integer type.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *