Compartilhar via


OutputCachePolicyBuilder.With Método

Definição

Sobrecargas

With(Func<OutputCacheContext,Boolean>)

Adiciona um requisito à política atual.

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

Adiciona um requisito à política atual.

With(Func<OutputCacheContext,Boolean>)

Origem:
OutputCachePolicyBuilder.cs

Adiciona um requisito à política atual.

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

Parâmetros

predicate
Func<OutputCacheContext,Boolean>

O predicado aplicado à política.

Retornos

Aplica-se a

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

Origem:
OutputCachePolicyBuilder.cs

Adiciona um requisito à política atual.

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

Parâmetros

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

O predicado aplicado à política.

Retornos

Aplica-se a