OutputCacheOptions.AddPolicy メソッド

定義

オーバーロード

AddPolicy(String, IOutputCachePolicy)

名前で参照できる IOutputCachePolicy を定義します。

AddPolicy(String, Action<OutputCachePolicyBuilder>)

名前で参照できる IOutputCachePolicy を定義します。

AddPolicy(String, Action<OutputCachePolicyBuilder>, Boolean)

名前で参照できる IOutputCachePolicy を定義します。

AddPolicy(String, IOutputCachePolicy)

ソース:
OutputCacheOptions.cs

名前で参照できる IOutputCachePolicy を定義します。

public void AddPolicy (string name, Microsoft.AspNetCore.OutputCaching.IOutputCachePolicy policy);
member this.AddPolicy : string * Microsoft.AspNetCore.OutputCaching.IOutputCachePolicy -> unit
Public Sub AddPolicy (name As String, policy As IOutputCachePolicy)

パラメーター

name
String

ポリシーの名前。

policy
IOutputCachePolicy

追加するポリシー

適用対象

AddPolicy(String, Action<OutputCachePolicyBuilder>)

ソース:
OutputCacheOptions.cs

名前で参照できる IOutputCachePolicy を定義します。

public void AddPolicy (string name, Action<Microsoft.AspNetCore.OutputCaching.OutputCachePolicyBuilder> build);
member this.AddPolicy : string * Action<Microsoft.AspNetCore.OutputCaching.OutputCachePolicyBuilder> -> unit
Public Sub AddPolicy (name As String, build As Action(Of OutputCachePolicyBuilder))

パラメーター

name
String

ポリシーの名前。

build
Action<OutputCachePolicyBuilder>

OutputCachePolicyBuilderに対するアクション。

注釈

構築されたポリシーは、既定のポリシーに基づいて作成されます。

適用対象

AddPolicy(String, Action<OutputCachePolicyBuilder>, Boolean)

ソース:
OutputCacheOptions.cs

名前で参照できる IOutputCachePolicy を定義します。

public void AddPolicy (string name, Action<Microsoft.AspNetCore.OutputCaching.OutputCachePolicyBuilder> build, bool excludeDefaultPolicy);
member this.AddPolicy : string * Action<Microsoft.AspNetCore.OutputCaching.OutputCachePolicyBuilder> * bool -> unit
Public Sub AddPolicy (name As String, build As Action(Of OutputCachePolicyBuilder), excludeDefaultPolicy As Boolean)

パラメーター

name
String

ポリシーの名前。

build
Action<OutputCachePolicyBuilder>

OutputCachePolicyBuilderに対するアクション。

excludeDefaultPolicy
Boolean

既定のポリシーを除外するかどうかを指定します。

適用対象