Compartir a través de


PageConventionCollectionExtensions.ConfigureFilter Método

Definición

Sobrecargas

ConfigureFilter(PageConventionCollection, IFilterMetadata)

Configura el objeto especificado filter para que se aplique a todas las páginas de Razor.

ConfigureFilter(PageConventionCollection, Func<PageApplicationModel,IFilterMetadata>)

Configura el especificado factory para aplicar filtros a todas las páginas de Razor.

ConfigureFilter(PageConventionCollection, IFilterMetadata)

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

Configura el objeto especificado filter para que se aplique a todas las páginas de Razor.

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

Parámetros

conventions
PageConventionCollection

El objeto PageConventionCollection que se va a configurar.

filter
IFilterMetadata

IFilterMetadata que se va a agregar.

Devoluciones

PageConventionCollection.

Se aplica a

ConfigureFilter(PageConventionCollection, Func<PageApplicationModel,IFilterMetadata>)

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

Configura el especificado factory para aplicar filtros a todas las páginas de Razor.

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

Parámetros

conventions
PageConventionCollection

El objeto PageConventionCollection que se va a configurar.

factory
Func<PageApplicationModel,IFilterMetadata>

Generador que se va a crear filtros.

Devoluciones

Se aplica a