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>
傳回
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>
- excludeDefaultPolicy
- Boolean
是否要排除默認原則。
傳回
TBuilder