PageConventionCollectionExtensions.ConfigureFilter 메서드
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
오버로드
ConfigureFilter(PageConventionCollection, IFilterMetadata) |
지정된 를 |
ConfigureFilter(PageConventionCollection, Func<PageApplicationModel,IFilterMetadata>) |
지정된 를 |
ConfigureFilter(PageConventionCollection, IFilterMetadata)
지정된 를 filter
모든 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
매개 변수
- conventions
- PageConventionCollection
구성할 PageConventionCollection입니다.
- filter
- IFilterMetadata
추가할 IFilterMetadata입니다.
반환
적용 대상
ConfigureFilter(PageConventionCollection, Func<PageApplicationModel,IFilterMetadata>)
지정된 를 factory
구성하여 모든 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
매개 변수
- conventions
- PageConventionCollection
구성할 PageConventionCollection입니다.
- factory
- Func<PageApplicationModel,IFilterMetadata>
필터를 만들 팩터리입니다.