Compartilhar via


PageConventionCollectionExtensions.ConfigureFilter Método

Definição

Sobrecargas

ConfigureFilter(PageConventionCollection, IFilterMetadata)

Configura o especificado filter para aplicar a todas as Páginas razor.

ConfigureFilter(PageConventionCollection, Func<PageApplicationModel,IFilterMetadata>)

Configura o especificado factory para aplicar filtros a todas as Páginas razor.

ConfigureFilter(PageConventionCollection, IFilterMetadata)

Origem:
PageConventionCollectionExtensions.cs
Origem:
PageConventionCollectionExtensions.cs
Origem:
PageConventionCollectionExtensions.cs

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

O PageConventionCollection.

Aplica-se a

ConfigureFilter(PageConventionCollection, Func<PageApplicationModel,IFilterMetadata>)

Origem:
PageConventionCollectionExtensions.cs
Origem:
PageConventionCollectionExtensions.cs
Origem:
PageConventionCollectionExtensions.cs

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.

Retornos

Aplica-se a