OutputCacheServiceCollectionExtensions.AddOutputCache Metode
Definisi
Penting
Beberapa informasi terkait produk prarilis yang dapat diubah secara signifikan sebelum dirilis. Microsoft tidak memberikan jaminan, tersirat maupun tersurat, sehubungan dengan informasi yang diberikan di sini.
Overload
AddOutputCache(IServiceCollection) |
Tambahkan layanan penembolokan output. |
AddOutputCache(IServiceCollection, Action<OutputCacheOptions>) |
Tambahkan layanan penembolokan output dan konfigurasikan opsi terkait. |
AddOutputCache(IServiceCollection)
Tambahkan layanan penembolokan output.
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
Parameter
- services
- IServiceCollection
IServiceCollection untuk menambahkan layanan.
Mengembalikan
Berlaku untuk
AddOutputCache(IServiceCollection, Action<OutputCacheOptions>)
Tambahkan layanan penembolokan output dan konfigurasikan opsi terkait.
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
Parameter
- services
- IServiceCollection
IServiceCollection untuk menambahkan layanan.
- configureOptions
- Action<OutputCacheOptions>
Delegasi untuk mengonfigurasi OutputCacheOptions.