Share via


PageConventionCollectionExtensions.ConfigureFilter Method

Definition

Overloads

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.

ConfigureFilter(PageConventionCollection, IFilterMetadata)

Source:
PageConventionCollectionExtensions.cs
Source:
PageConventionCollectionExtensions.cs
Source:
PageConventionCollectionExtensions.cs

Configures the specified filter to apply to all Razor Pages.

public static Microsoft.AspNetCore.Mvc.ApplicationModels.PageConventionCollection ConfigureFilter (this Microsoft.AspNetCore.Mvc.ApplicationModels.PageConventionCollection conventions, Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata filter);
static member ConfigureFilter : Microsoft.AspNetCore.Mvc.ApplicationModels.PageConventionCollection * Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata -> Microsoft.AspNetCore.Mvc.ApplicationModels.PageConventionCollection
<Extension()>
Public Function ConfigureFilter (conventions As PageConventionCollection, filter As IFilterMetadata) As PageConventionCollection

Parameters

conventions
PageConventionCollection

The PageConventionCollection to configure.

filter
IFilterMetadata

The IFilterMetadata to add.

Returns

The PageConventionCollection.

Applies to

ConfigureFilter(PageConventionCollection, Func<PageApplicationModel,IFilterMetadata>)

Source:
PageConventionCollectionExtensions.cs
Source:
PageConventionCollectionExtensions.cs
Source:
PageConventionCollectionExtensions.cs

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

public static Microsoft.AspNetCore.Mvc.ApplicationModels.IPageApplicationModelConvention ConfigureFilter (this Microsoft.AspNetCore.Mvc.ApplicationModels.PageConventionCollection conventions, Func<Microsoft.AspNetCore.Mvc.ApplicationModels.PageApplicationModel,Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata> factory);
static member ConfigureFilter : Microsoft.AspNetCore.Mvc.ApplicationModels.PageConventionCollection * Func<Microsoft.AspNetCore.Mvc.ApplicationModels.PageApplicationModel, Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata> -> Microsoft.AspNetCore.Mvc.ApplicationModels.IPageApplicationModelConvention
<Extension()>
Public Function ConfigureFilter (conventions As PageConventionCollection, factory As Func(Of PageApplicationModel, IFilterMetadata)) As IPageApplicationModelConvention

Parameters

conventions
PageConventionCollection

The PageConventionCollection to configure.

factory
Func<PageApplicationModel,IFilterMetadata>

The factory to create filters.

Returns

Applies to