PageConventionCollectionExtensions.ConfigureFilter Metoda

Definice

Přetížení

ConfigureFilter(PageConventionCollection, IFilterMetadata)

Nakonfiguruje zadaný parametr filter tak, aby se vztahuje na všechny Razor Pages.

ConfigureFilter(PageConventionCollection, Func<PageApplicationModel,IFilterMetadata>)

Nakonfiguruje zadaný parametr factory tak, aby se filtry na všechny Razor Pages.

ConfigureFilter(PageConventionCollection, IFilterMetadata)

Nakonfiguruje zadaný parametr filter tak, aby se vztahuje na všechny 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

Parametry

conventions
PageConventionCollection

, PageConventionCollection která se má nakonfigurovat.

filter
IFilterMetadata

, IFilterMetadata která se má přidat.

Návraty

PageConventionCollection

Hodnota PageConventionCollection

Platí pro

ConfigureFilter(PageConventionCollection, Func<PageApplicationModel,IFilterMetadata>)

Nakonfiguruje zadaný parametr factory tak, aby se filtry na všechny 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

Parametry

conventions
PageConventionCollection

, PageConventionCollection která se má nakonfigurovat.

factory
Func<PageApplicationModel,IFilterMetadata>

Továrna pro vytváření filtrů.

Návraty

IPageApplicationModelConvention

Platí pro