PageConventionCollectionExtensions.AddPageRoute(PageConventionCollection, String, String) PageConventionCollectionExtensions.AddPageRoute(PageConventionCollection, String, String) PageConventionCollectionExtensions.AddPageRoute(PageConventionCollection, String, String) PageConventionCollectionExtensions.AddPageRoute(PageConventionCollection, String, String) Method

Definition

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:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::Mvc::ApplicationModels::PageConventionCollection ^ AddPageRoute(Microsoft::AspNetCore::Mvc::ApplicationModels::PageConventionCollection ^ conventions, System::String ^ pageName, System::String ^ 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

pageName
String String String String

The page name.

route
String String String String

The route to associate with the page.

Returns

Applies to