PageConventionCollectionExtensions.ConfigureFilter Método
Definição
Importante
Algumas informações se referem a produtos de pré-lançamento que podem ser substancialmente modificados antes do lançamento. A Microsoft não oferece garantias, expressas ou implícitas, das informações aqui fornecidas.
Sobrecargas
ConfigureFilter(PageConventionCollection, IFilterMetadata) |
Configura o especificado |
ConfigureFilter(PageConventionCollection, Func<PageApplicationModel,IFilterMetadata>) |
Configura o especificado |
ConfigureFilter(PageConventionCollection, IFilterMetadata)
Configura o especificado filter
para aplicar a todas as Páginas 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
O PageConventionCollection a ser configurado.
- filter
- IFilterMetadata
O IFilterMetadata a ser adicionado.
Retornos
Aplica-se a
ConfigureFilter(PageConventionCollection, Func<PageApplicationModel,IFilterMetadata>)
Configura o especificado factory
para aplicar filtros a todas as Páginas 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
O PageConventionCollection a ser configurado.
- factory
- Func<PageApplicationModel,IFilterMetadata>
A fábrica para criar filtros.