ResponseCachingServicesExtensions.AddResponseCaching Metoda
Definice
Důležité
Některé informace platí pro předběžně vydaný produkt, který se může zásadně změnit, než ho výrobce nebo autor vydá. Microsoft neposkytuje žádné záruky, výslovné ani předpokládané, týkající se zde uváděných informací.
Přetížení
AddResponseCaching(IServiceCollection) |
Přidejte služby ukládání odpovědí do mezipaměti. |
AddResponseCaching(IServiceCollection, Action<ResponseCachingOptions>) |
Přidejte služby ukládání odpovědí do mezipaměti a nakonfigurujte související možnosti. |
AddResponseCaching(IServiceCollection)
Přidejte služby ukládání odpovědí do mezipaměti.
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
Parametry
- services
- IServiceCollection
Pro IServiceCollection přidání služeb.
Návraty
Platí pro
AddResponseCaching(IServiceCollection, Action<ResponseCachingOptions>)
Přidejte služby ukládání odpovědí do mezipaměti a nakonfigurujte související možnosti.
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
Parametry
- services
- IServiceCollection
Pro IServiceCollection přidání služeb.
- configureOptions
- Action<ResponseCachingOptions>
Delegát pro konfiguraci .ResponseCachingOptions
Návraty
Platí pro
Váš názor
https://aka.ms/ContentUserFeedback.
Připravujeme: V průběhu roku 2024 budeme postupně vyřazovat problémy z GitHub coby mechanismus zpětné vazby pro obsah a nahrazovat ho novým systémem zpětné vazby. Další informace naleznete v tématu:Odeslat a zobrazit názory pro