Condividi tramite


PageConventionCollectionExtensions.ConfigureFilter Metodo

Definizione

Overload

ConfigureFilter(PageConventionCollection, IFilterMetadata)

Configura l'oggetto specificato filter da applicare a tutte le pagine Razor.

ConfigureFilter(PageConventionCollection, Func<PageApplicationModel,IFilterMetadata>)

Configura l'oggetto specificato factory per applicare filtri a tutte le pagine Razor.

ConfigureFilter(PageConventionCollection, IFilterMetadata)

Origine:
PageConventionCollectionExtensions.cs
Origine:
PageConventionCollectionExtensions.cs
Origine:
PageConventionCollectionExtensions.cs

Configura l'oggetto specificato filter da applicare a tutte le pagine 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

Parametri

conventions
PageConventionCollection

Oggetto PageConventionCollection da configurare.

filter
IFilterMetadata

Oggetto IFilterMetadata da aggiungere.

Restituisce

Oggetto PageConventionCollection.

Si applica a

ConfigureFilter(PageConventionCollection, Func<PageApplicationModel,IFilterMetadata>)

Origine:
PageConventionCollectionExtensions.cs
Origine:
PageConventionCollectionExtensions.cs
Origine:
PageConventionCollectionExtensions.cs

Configura l'oggetto specificato factory per applicare filtri a tutte le pagine 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

Parametri

conventions
PageConventionCollection

Oggetto PageConventionCollection da configurare.

factory
Func<PageApplicationModel,IFilterMetadata>

Factory per creare filtri.

Restituisce

Si applica a