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)

Configures the specified filter to apply to all Razor Pages.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::Mvc::ApplicationModels::PageConventionCollection ^ ConfigureFilter(Microsoft::AspNetCore::Mvc::ApplicationModels::PageConventionCollection ^ conventions, Microsoft::AspNetCore::Mvc::Filters::IFilterMetadata ^ filter);
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

PageConventionCollection

The PageConventionCollection.

ConfigureFilter(PageConventionCollection, Func<PageApplicationModel,IFilterMetadata>)

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

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::Mvc::ApplicationModels::IPageApplicationModelConvention ^ ConfigureFilter(Microsoft::AspNetCore::Mvc::ApplicationModels::PageConventionCollection ^ conventions, Func<Microsoft::AspNetCore::Mvc::ApplicationModels::PageApplicationModel ^, Microsoft::AspNetCore::Mvc::Filters::IFilterMetadata ^> ^ factory);
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

IPageApplicationModelConvention

Applies to