PageConventionCollectionExtensions.AddPageRoute 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.
Adds the specified route
to the page at the specified pageName
.
The page can be routed via route
in addition to the default set of path based routes.
All links generated for this page will use the specified route.
public static Microsoft.AspNetCore.Mvc.ApplicationModels.PageConventionCollection AddPageRoute (this Microsoft.AspNetCore.Mvc.ApplicationModels.PageConventionCollection conventions, string pageName, string route);
static member AddPageRoute : Microsoft.AspNetCore.Mvc.ApplicationModels.PageConventionCollection * string * string -> Microsoft.AspNetCore.Mvc.ApplicationModels.PageConventionCollection
<Extension()>
Public Function AddPageRoute (conventions As PageConventionCollection, pageName As String, route As String) As PageConventionCollection
Parameters
- conventions
- PageConventionCollection
- pageName
- String
The page name.
- route
- String
The route to associate with the page.