Share via


PageConventionCollection Class

Definition

Collection of IPageConvention.

public ref class PageConventionCollection : System::Collections::ObjectModel::Collection<Microsoft::AspNetCore::Mvc::ApplicationModels::IPageConvention ^>
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
PageConventionCollection

Constructors

PageConventionCollection()

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

PageConventionCollection(IList<IPageConvention>)

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

Methods

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>)

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>)

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>)

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>)

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

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>)

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

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)

Removes all IPageConvention instances of the specified type.

RemoveType<TPageConvention>()

Removes all IPageConvention instances of the specified type.

Extension 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, String)

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

AuthorizeAreaFolder(PageConventionCollection, String, String)

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

AuthorizeAreaPage(PageConventionCollection, String, String, String)

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

AuthorizeAreaPage(PageConventionCollection, String, String)

Requires authorization for the specified area page.

AuthorizeFolder(PageConventionCollection, String, String)

Requires authorization for all pages under the specified folder.

AuthorizeFolder(PageConventionCollection, String)

Requires authorization for all pages under the specified folder.

AuthorizePage(PageConventionCollection, String, String)

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

AuthorizePage(PageConventionCollection, String)

Requires authorization for the specified page.

ConfigureFilter(PageConventionCollection, IFilterMetadata)

Configures the specified filter to apply to all Razor Pages.

ConfigureFilter(PageConventionCollection, Func<PageApplicationModel,IFilterMetadata>)

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

Applies to