共用方式為


OutputCachePolicyBuilder.With 方法

定義

多載

With(Func<OutputCacheContext,Boolean>)

將需求新增至目前的原則。

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

將需求新增至目前的原則。

With(Func<OutputCacheContext,Boolean>)

來源:
OutputCachePolicyBuilder.cs

將需求新增至目前的原則。

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

參數

predicate
Func<OutputCacheContext,Boolean>

套用至原則的述詞。

傳回

適用於

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

來源:
OutputCachePolicyBuilder.cs

將需求新增至目前的原則。

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

參數

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

套用至原則的述詞。

傳回

適用於