OutputCacheServiceCollectionExtensions.AddOutputCache メソッド

定義

オーバーロード

AddOutputCache(IServiceCollection)

出力キャッシュ サービスを追加します。

AddOutputCache(IServiceCollection, Action<OutputCacheOptions>)

出力キャッシュ サービスを追加し、関連するオプションを構成します。

AddOutputCache(IServiceCollection)

ソース:
OutputCacheServiceCollectionExtensions.cs

出力キャッシュ サービスを追加します。

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

パラメーター

services
IServiceCollection

サービスを追加するための IServiceCollection

戻り値

適用対象

AddOutputCache(IServiceCollection, Action<OutputCacheOptions>)

ソース:
OutputCacheServiceCollectionExtensions.cs

出力キャッシュ サービスを追加し、関連するオプションを構成します。

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

パラメーター

services
IServiceCollection

サービスを追加するための IServiceCollection

configureOptions
Action<OutputCacheOptions>

OutputCacheOptionsを構成するデリゲート。

戻り値

適用対象