Condividi tramite


OutputCachePolicyBuilder.With Metodo

Definizione

Overload

With(Func<OutputCacheContext,Boolean>)

Aggiunge un requisito ai criteri correnti.

With(Func<OutputCacheContext,CancellationToken,ValueTask<Boolean>>)

Aggiunge un requisito ai criteri correnti.

With(Func<OutputCacheContext,Boolean>)

Origine:
OutputCachePolicyBuilder.cs

Aggiunge un requisito ai criteri correnti.

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

Parametri

predicate
Func<OutputCacheContext,Boolean>

Predicato applicato al criterio.

Restituisce

Si applica a

With(Func<OutputCacheContext,CancellationToken,ValueTask<Boolean>>)

Origine:
OutputCachePolicyBuilder.cs

Aggiunge un requisito ai criteri correnti.

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

Parametri

predicate
Func<OutputCacheContext,CancellationToken,ValueTask<Boolean>>

Predicato applicato al criterio.

Restituisce

Si applica a