PageConventionCollection PageConventionCollection PageConventionCollection Class

Definition

public class PageConventionCollection : System.Collections.ObjectModel.Collection<Microsoft.AspNetCore.Mvc.ApplicationModels.IPageConvention>
type PageConventionCollection = class
    inherit Collection<IPageConvention>
Public Class PageConventionCollection
Inherits Collection(Of IPageConvention)
Inheritance
PageConventionCollectionPageConventionCollectionPageConventionCollection

Constructors

PageConventionCollection() PageConventionCollection() PageConventionCollection()

Initializes a new instance of the PageConventionCollection class that is empty.

PageConventionCollection(IList<IPageConvention>) PageConventionCollection(IList<IPageConvention>) PageConventionCollection(IList<IPageConvention>)

Initializes a new instance of the PageConventionCollection class as a wrapper for the specified list.

Methods

AddAreaFolderApplicationModelConvention(String, String, Action<PageApplicationModel>) AddAreaFolderApplicationModelConvention(String, String, Action<PageApplicationModel>) AddAreaFolderApplicationModelConvention(String, String, Action<PageApplicationModel>)

Creates and adds an IPageApplicationModelConvention that invokes an action on PageApplicationModel instances for all pages under the specified area folder.

AddAreaFolderRouteModelConvention(String, String, Action<PageRouteModel>) AddAreaFolderRouteModelConvention(String, String, Action<PageRouteModel>) AddAreaFolderRouteModelConvention(String, String, Action<PageRouteModel>)

Creates and adds an IPageRouteModelConvention that invokes an action on PageRouteModel instances for all page under the specified area folder.

AddAreaPageApplicationModelConvention(String, String, Action<PageApplicationModel>) AddAreaPageApplicationModelConvention(String, String, Action<PageApplicationModel>) AddAreaPageApplicationModelConvention(String, String, Action<PageApplicationModel>)

Creates and adds an IPageApplicationModelConvention that invokes an action on the PageApplicationModel for the page with the specified name located in the specified area.

AddAreaPageRouteModelConvention(String, String, Action<PageRouteModel>) AddAreaPageRouteModelConvention(String, String, Action<PageRouteModel>) AddAreaPageRouteModelConvention(String, String, Action<PageRouteModel>)

Creates and adds an IPageRouteModelConvention that invokes an action on the PageRouteModel for the page with the specified name located in the specified area.

AddFolderApplicationModelConvention(String, Action<PageApplicationModel>) AddFolderApplicationModelConvention(String, Action<PageApplicationModel>) AddFolderApplicationModelConvention(String, Action<PageApplicationModel>)

Creates and adds an IPageApplicationModelConvention that invokes an action on PageApplicationModel instances for all page under the specified folder.

AddFolderRouteModelConvention(String, Action<PageRouteModel>) AddFolderRouteModelConvention(String, Action<PageRouteModel>) AddFolderRouteModelConvention(String, Action<PageRouteModel>)

Creates and adds an IPageRouteModelConvention that invokes an action on PageRouteModel instances for all page under the specified folder.

AddPageApplicationModelConvention(String, Action<PageApplicationModel>) AddPageApplicationModelConvention(String, Action<PageApplicationModel>) AddPageApplicationModelConvention(String, Action<PageApplicationModel>)

Creates and adds an IPageApplicationModelConvention that invokes an action on the PageApplicationModel for the page with the specified name.

AddPageRouteModelConvention(String, Action<PageRouteModel>) AddPageRouteModelConvention(String, Action<PageRouteModel>) AddPageRouteModelConvention(String, Action<PageRouteModel>)

Creates and adds an IPageRouteModelConvention that invokes an action on the PageRouteModel for the page with the specified name.

RemoveType(Type) RemoveType(Type) RemoveType(Type)

Removes all IPageConvention instances of the specified type.

RemoveType<TPageConvention>() RemoveType<TPageConvention>() RemoveType<TPageConvention>()

Removes all IPageConvention instances of the specified type.

Extension Methods

Add(PageConventionCollection, IParameterModelBaseConvention) Add(PageConventionCollection, IParameterModelBaseConvention) 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) AddAreaPageRoute(PageConventionCollection, String, String, String) 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) AddPageRoute(PageConventionCollection, String, String) 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) AllowAnonymousToAreaFolder(PageConventionCollection, String, String) AllowAnonymousToAreaFolder(PageConventionCollection, String, String)

Adds a AllowAnonymousFilter to all pages under the specified area folder.

AllowAnonymousToAreaPage(PageConventionCollection, String, String) AllowAnonymousToAreaPage(PageConventionCollection, String, String) AllowAnonymousToAreaPage(PageConventionCollection, String, String)

Adds a AllowAnonymousFilter to the page with the specified name located in the specified area.

AllowAnonymousToFolder(PageConventionCollection, String) AllowAnonymousToFolder(PageConventionCollection, String) AllowAnonymousToFolder(PageConventionCollection, String)

Adds a AllowAnonymousFilter to all pages under the specified folder.

AllowAnonymousToPage(PageConventionCollection, String) AllowAnonymousToPage(PageConventionCollection, String) AllowAnonymousToPage(PageConventionCollection, String)

Adds a AllowAnonymousFilter to the page with the specified name.

AuthorizeAreaFolder(PageConventionCollection, String, String) AuthorizeAreaFolder(PageConventionCollection, String, String) AuthorizeAreaFolder(PageConventionCollection, String, String)

Adds a AuthorizeFilter with the default policy to all pages under the specified folder.

AuthorizeAreaFolder(PageConventionCollection, String, String, String) AuthorizeAreaFolder(PageConventionCollection, String, String, String) AuthorizeAreaFolder(PageConventionCollection, String, String, String)

Adds a AuthorizeFilter with the specified policy to all pages under the specified folder.

AuthorizeAreaPage(PageConventionCollection, String, String) AuthorizeAreaPage(PageConventionCollection, String, String) AuthorizeAreaPage(PageConventionCollection, String, String)

Adds a AuthorizeFilter with default policy to the page with the specified name.

AuthorizeAreaPage(PageConventionCollection, String, String, String) AuthorizeAreaPage(PageConventionCollection, String, String, String) AuthorizeAreaPage(PageConventionCollection, String, String, String)

Adds a AuthorizeFilter with the specified policy to the page with the specified name.

AuthorizeFolder(PageConventionCollection, String) AuthorizeFolder(PageConventionCollection, String) AuthorizeFolder(PageConventionCollection, String)

Adds a AuthorizeFilter to all pages under the specified folder.

AuthorizeFolder(PageConventionCollection, String, String) AuthorizeFolder(PageConventionCollection, String, String) AuthorizeFolder(PageConventionCollection, String, String)

Adds a AuthorizeFilter with the specified policy to all pages under the specified folder.

AuthorizePage(PageConventionCollection, String) AuthorizePage(PageConventionCollection, String) AuthorizePage(PageConventionCollection, String)

Adds a AuthorizeFilter to the page with the specified name.

AuthorizePage(PageConventionCollection, String, String) AuthorizePage(PageConventionCollection, String, String) AuthorizePage(PageConventionCollection, String, String)

Adds a AuthorizeFilter with the specified policy to the page with the specified name.

ConfigureFilter(PageConventionCollection, IFilterMetadata) ConfigureFilter(PageConventionCollection, IFilterMetadata) ConfigureFilter(PageConventionCollection, IFilterMetadata)

Configures the specified filter to apply to all Razor Pages.

ConfigureFilter(PageConventionCollection, Func<PageApplicationModel,IFilterMetadata>) ConfigureFilter(PageConventionCollection, Func<PageApplicationModel,IFilterMetadata>) ConfigureFilter(PageConventionCollection, Func<PageApplicationModel,IFilterMetadata>)

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

Applies to