TagHelperServicesExtensions.AddCacheTagHelperLimits 方法

定义

重载

AddCacheTagHelperLimits(IMvcBuilder, Action<CacheTagHelperOptions>)

在 的缓存 CacheTagHelper上配置内存大小限制。

AddCacheTagHelperLimits(IMvcCoreBuilder, Action<CacheTagHelperOptions>)

在 的缓存 CacheTagHelper上配置内存大小限制。

AddCacheTagHelperLimits(IMvcBuilder, Action<CacheTagHelperOptions>)

在 的缓存 CacheTagHelper上配置内存大小限制。

public static Microsoft.Extensions.DependencyInjection.IMvcBuilder AddCacheTagHelperLimits (this Microsoft.Extensions.DependencyInjection.IMvcBuilder builder, Action<Microsoft.AspNetCore.Mvc.TagHelpers.CacheTagHelperOptions> configure);
static member AddCacheTagHelperLimits : Microsoft.Extensions.DependencyInjection.IMvcBuilder * Action<Microsoft.AspNetCore.Mvc.TagHelpers.CacheTagHelperOptions> -> Microsoft.Extensions.DependencyInjection.IMvcBuilder
<Extension()>
Public Function AddCacheTagHelperLimits (builder As IMvcBuilder, configure As Action(Of CacheTagHelperOptions)) As IMvcBuilder

参数

configure
Action<CacheTagHelperOptions>

用于 Action<T>配置缓存选项的 。

返回

IMvcBuilder

适用于

AddCacheTagHelperLimits(IMvcCoreBuilder, Action<CacheTagHelperOptions>)

在 的缓存 CacheTagHelper上配置内存大小限制。

public static Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder AddCacheTagHelperLimits (this Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder builder, Action<Microsoft.AspNetCore.Mvc.TagHelpers.CacheTagHelperOptions> configure);
static member AddCacheTagHelperLimits : Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder * Action<Microsoft.AspNetCore.Mvc.TagHelpers.CacheTagHelperOptions> -> Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder
<Extension()>
Public Function AddCacheTagHelperLimits (builder As IMvcCoreBuilder, configure As Action(Of CacheTagHelperOptions)) As IMvcCoreBuilder

参数

configure
Action<CacheTagHelperOptions>

用于 Action<T>配置缓存选项的 。

返回

IMvcCoreBuilder

适用于