OutputCachePolicyBuilder.With Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
With(Func<OutputCacheContext,Boolean>) |
Adds a requirement to the current policy. |
With(Func<OutputCacheContext,CancellationToken,ValueTask<Boolean>>) |
Adds a requirement to the current policy. |
With(Func<OutputCacheContext,Boolean>)
- Source:
- OutputCachePolicyBuilder.cs
Adds a requirement to the current policy.
public Microsoft.AspNetCore.OutputCaching.OutputCachePolicyBuilder With (Func<Microsoft.AspNetCore.OutputCaching.OutputCacheContext,bool> predicate);
member this.With : Func<Microsoft.AspNetCore.OutputCaching.OutputCacheContext, bool> -> Microsoft.AspNetCore.OutputCaching.OutputCachePolicyBuilder
Public Function With (predicate As Func(Of OutputCacheContext, Boolean)) As OutputCachePolicyBuilder
Parameters
- predicate
- Func<OutputCacheContext,Boolean>
The predicate applied to the policy.
Returns
Applies to
With(Func<OutputCacheContext,CancellationToken,ValueTask<Boolean>>)
- Source:
- OutputCachePolicyBuilder.cs
Adds a requirement to the current policy.
public Microsoft.AspNetCore.OutputCaching.OutputCachePolicyBuilder With (Func<Microsoft.AspNetCore.OutputCaching.OutputCacheContext,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask<bool>> predicate);
member this.With : Func<Microsoft.AspNetCore.OutputCaching.OutputCacheContext, System.Threading.CancellationToken, System.Threading.Tasks.ValueTask<bool>> -> Microsoft.AspNetCore.OutputCaching.OutputCachePolicyBuilder
Public Function With (predicate As Func(Of OutputCacheContext, CancellationToken, ValueTask(Of Boolean))) As OutputCachePolicyBuilder
Parameters
- predicate
- Func<OutputCacheContext,CancellationToken,ValueTask<Boolean>>
The predicate applied to the policy.