共用方式為


OutputCacheConventionBuilderExtensions.CacheOutput 方法

定義

多載

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)

來源:
OutputCacheConventionBuilderExtensions.cs

標記要以默認原則快取的端點。

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)

來源:
OutputCacheConventionBuilderExtensions.cs

標記要以指定原則快取的端點。

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

傳回

TBuilder

適用於

CacheOutput<TBuilder>(TBuilder, Action<OutputCachePolicyBuilder>)

來源:
OutputCacheConventionBuilderExtensions.cs

標記使用指定的原則產生器快取的端點。

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

IEndpointConventionBuilder

傳回

TBuilder

適用於

CacheOutput<TBuilder>(TBuilder, String)

來源:
OutputCacheConventionBuilderExtensions.cs

標記使用具名原則快取的端點。

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)

來源:
OutputCacheConventionBuilderExtensions.cs

標記使用指定的原則產生器快取的端點。

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

IEndpointConventionBuilder

excludeDefaultPolicy
Boolean

是否要排除默認原則。

傳回

TBuilder

適用於