PageConventionCollectionExtensions.ConfigureFilter Metodo
Definizione
Importante
Alcune informazioni sono relative alla release non definitiva del prodotto, che potrebbe subire modifiche significative prima della release definitiva. Microsoft non riconosce alcuna garanzia, espressa o implicita, in merito alle informazioni qui fornite.
Overload
ConfigureFilter(PageConventionCollection, IFilterMetadata) |
Configura l'oggetto specificato |
ConfigureFilter(PageConventionCollection, Func<PageApplicationModel,IFilterMetadata>) |
Configura l'oggetto specificato |
ConfigureFilter(PageConventionCollection, IFilterMetadata)
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>)
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.