| File: ModelBinding\IRequestPredicateProvider.cs | Web Access |
| Project: src\aspnetcore\src\Mvc\Mvc.Abstractions\src\Microsoft.AspNetCore.Mvc.Abstractions.csproj (Microsoft.AspNetCore.Mvc.Abstractions) |
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Mvc.ModelBinding; /// <summary> /// An interface that allows a top-level model to be bound or not bound based on state associated /// with the current request. /// </summary> public interface IRequestPredicateProvider { /// <summary> /// Gets a function which determines whether or not the model object should be bound based /// on the current request. /// </summary> Func<ActionContext, bool> RequestPredicate { get; } }