OutputCacheConventionBuilderExtensions.CacheOutput 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
CacheOutput<TBuilder>(TBuilder) |
使用默认策略标记要缓存的终结点。 |
CacheOutput<TBuilder>(TBuilder, IOutputCachePolicy) |
标记使用指定策略缓存的终结点。 |
CacheOutput<TBuilder>(TBuilder, Action<OutputCachePolicyBuilder>) |
使用指定的策略生成器标记要缓存的终结点。 |
CacheOutput<TBuilder>(TBuilder, String) |
使用命名策略标记要缓存的终结点。 |
CacheOutput<TBuilder>(TBuilder, Action<OutputCachePolicyBuilder>, Boolean) |
使用指定的策略生成器标记要缓存的终结点。 |
CacheOutput<TBuilder>(TBuilder)
使用默认策略标记要缓存的终结点。
public static TBuilder CacheOutput<TBuilder> (this TBuilder builder) where TBuilder : Microsoft.AspNetCore.Builder.IEndpointConventionBuilder;
static member CacheOutput : 'Builder -> 'Builder (requires 'Builder :> Microsoft.AspNetCore.Builder.IEndpointConventionBuilder)
<Extension()>
Public Function CacheOutput(Of TBuilder As IEndpointConventionBuilder) (builder As TBuilder) As TBuilder
类型参数
- TBuilder
参数
- builder
- TBuilder
返回
TBuilder
适用于
CacheOutput<TBuilder>(TBuilder, IOutputCachePolicy)
标记使用指定策略缓存的终结点。
public static TBuilder CacheOutput<TBuilder> (this TBuilder builder, Microsoft.AspNetCore.OutputCaching.IOutputCachePolicy policy) where TBuilder : Microsoft.AspNetCore.Builder.IEndpointConventionBuilder;
static member CacheOutput : 'Builder * Microsoft.AspNetCore.OutputCaching.IOutputCachePolicy -> 'Builder (requires 'Builder :> Microsoft.AspNetCore.Builder.IEndpointConventionBuilder)
<Extension()>
Public Function CacheOutput(Of TBuilder As IEndpointConventionBuilder) (builder As TBuilder, policy As IOutputCachePolicy) As TBuilder
类型参数
- TBuilder
参数
- builder
- TBuilder
- policy
- IOutputCachePolicy
返回
TBuilder
适用于
CacheOutput<TBuilder>(TBuilder, Action<OutputCachePolicyBuilder>)
使用指定的策略生成器标记要缓存的终结点。
public static TBuilder CacheOutput<TBuilder> (this TBuilder builder, Action<Microsoft.AspNetCore.OutputCaching.OutputCachePolicyBuilder> policy) where TBuilder : Microsoft.AspNetCore.Builder.IEndpointConventionBuilder;
static member CacheOutput : 'Builder * Action<Microsoft.AspNetCore.OutputCaching.OutputCachePolicyBuilder> -> 'Builder (requires 'Builder :> Microsoft.AspNetCore.Builder.IEndpointConventionBuilder)
<Extension()>
Public Function CacheOutput(Of TBuilder As IEndpointConventionBuilder) (builder As TBuilder, policy As Action(Of OutputCachePolicyBuilder)) As TBuilder
类型参数
- TBuilder
参数
- builder
- TBuilder
- policy
- Action<OutputCachePolicyBuilder>
对 OutputCachePolicyBuilder执行的操作。
返回
TBuilder
适用于
CacheOutput<TBuilder>(TBuilder, String)
使用命名策略标记要缓存的终结点。
public static TBuilder CacheOutput<TBuilder> (this TBuilder builder, string policyName) where TBuilder : Microsoft.AspNetCore.Builder.IEndpointConventionBuilder;
static member CacheOutput : 'Builder * string -> 'Builder (requires 'Builder :> Microsoft.AspNetCore.Builder.IEndpointConventionBuilder)
<Extension()>
Public Function CacheOutput(Of TBuilder As IEndpointConventionBuilder) (builder As TBuilder, policyName As String) As TBuilder
类型参数
- TBuilder
参数
- builder
- TBuilder
- policyName
- String
返回
TBuilder
适用于
CacheOutput<TBuilder>(TBuilder, Action<OutputCachePolicyBuilder>, Boolean)
使用指定的策略生成器标记要缓存的终结点。
public static TBuilder CacheOutput<TBuilder> (this TBuilder builder, Action<Microsoft.AspNetCore.OutputCaching.OutputCachePolicyBuilder> policy, bool excludeDefaultPolicy) where TBuilder : Microsoft.AspNetCore.Builder.IEndpointConventionBuilder;
static member CacheOutput : 'Builder * Action<Microsoft.AspNetCore.OutputCaching.OutputCachePolicyBuilder> * bool -> 'Builder (requires 'Builder :> Microsoft.AspNetCore.Builder.IEndpointConventionBuilder)
<Extension()>
Public Function CacheOutput(Of TBuilder As IEndpointConventionBuilder) (builder As TBuilder, policy As Action(Of OutputCachePolicyBuilder), excludeDefaultPolicy As Boolean) As TBuilder
类型参数
- TBuilder
参数
- builder
- TBuilder
- policy
- Action<OutputCachePolicyBuilder>
对 OutputCachePolicyBuilder执行的操作。
- excludeDefaultPolicy
- Boolean
是否排除默认策略。
返回
TBuilder