PageConventionCollectionExtensions Class

Definition

Extensions for PageConventionCollection.

public static class PageConventionCollectionExtensions
type PageConventionCollectionExtensions = class
Public Module PageConventionCollectionExtensions
Inheritance
PageConventionCollectionExtensions

Methods

Add(PageConventionCollection, IParameterModelBaseConvention)

Adds the specified convention to conventions. The added convention will apply to all handler properties and parameters on handler methods.

AddAreaPageRoute(PageConventionCollection, String, String, String)

Adds the specified route to the page at the specified pageName located in the specified area.

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.

AddPageRoute(PageConventionCollection, String, String)

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.

AllowAnonymousToAreaFolder(PageConventionCollection, String, String)

Allows anonymous access to all pages under the specified area folder.

AllowAnonymousToAreaPage(PageConventionCollection, String, String)

Allows anonymous access to the page with the specified name located in the specified area.

AllowAnonymousToFolder(PageConventionCollection, String)

Allows anonymous access to all pages under the specified folder.

AllowAnonymousToPage(PageConventionCollection, String)

Allows anonymous access to the page with the specified name.

AuthorizeAreaFolder(PageConventionCollection, String, String)

Requires authorization with the default policy for all pages under the specified folder.

AuthorizeAreaFolder(PageConventionCollection, String, String, String)

Requires authorization with the specified policy for all pages under the specified folder.

AuthorizeAreaPage(PageConventionCollection, String, String)

Requires authorization for the specified area page.

AuthorizeAreaPage(PageConventionCollection, String, String, String)

Requires authorization for the specified area page with the specified policy.

AuthorizeFolder(PageConventionCollection, String)

Requires authorization for all pages under the specified folder.

AuthorizeFolder(PageConventionCollection, String, String)

Requires authorization for all pages under the specified folder.

AuthorizePage(PageConventionCollection, String)

Requires authorization for the specified page.

AuthorizePage(PageConventionCollection, String, String)

Requires authorization with the specified policy for the page with the specified name.

ConfigureFilter(PageConventionCollection, Func<PageApplicationModel,IFilterMetadata>)

Configures the specified factory to apply filters to all Razor Pages.

ConfigureFilter(PageConventionCollection, IFilterMetadata)

Configures the specified filter to apply to all Razor Pages.

Applies to