共用方式為


ResponseCachingServicesExtensions.AddResponseCaching 方法

定義

多載

AddResponseCaching(IServiceCollection)

新增回應快取服務。

AddResponseCaching(IServiceCollection, Action<ResponseCachingOptions>)

新增回應快取服務並設定相關選項。

AddResponseCaching(IServiceCollection)

來源:
ResponseCachingServicesExtensions.cs
來源:
ResponseCachingServicesExtensions.cs
來源:
ResponseCachingServicesExtensions.cs

新增回應快取服務。

public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddResponseCaching (this Microsoft.Extensions.DependencyInjection.IServiceCollection services);
static member AddResponseCaching : Microsoft.Extensions.DependencyInjection.IServiceCollection -> Microsoft.Extensions.DependencyInjection.IServiceCollection
<Extension()>
Public Function AddResponseCaching (services As IServiceCollection) As IServiceCollection

參數

services
IServiceCollection

IServiceCollection用於新增服務的 。

傳回

適用於

AddResponseCaching(IServiceCollection, Action<ResponseCachingOptions>)

來源:
ResponseCachingServicesExtensions.cs
來源:
ResponseCachingServicesExtensions.cs
來源:
ResponseCachingServicesExtensions.cs

新增回應快取服務並設定相關選項。

public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddResponseCaching (this Microsoft.Extensions.DependencyInjection.IServiceCollection services, Action<Microsoft.AspNetCore.ResponseCaching.ResponseCachingOptions> configureOptions);
static member AddResponseCaching : Microsoft.Extensions.DependencyInjection.IServiceCollection * Action<Microsoft.AspNetCore.ResponseCaching.ResponseCachingOptions> -> Microsoft.Extensions.DependencyInjection.IServiceCollection
<Extension()>
Public Function AddResponseCaching (services As IServiceCollection, configureOptions As Action(Of ResponseCachingOptions)) As IServiceCollection

參數

services
IServiceCollection

IServiceCollection用於新增服務的 。

configureOptions
Action<ResponseCachingOptions>

設定 ResponseCachingOptions 的委派。

傳回

適用於