OutputCacheSettingsSection.OutputCacheProfiles Vlastnost
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í.
OutputCacheProfileCollectionZíská .
public:
property System::Web::Configuration::OutputCacheProfileCollection ^ OutputCacheProfiles { System::Web::Configuration::OutputCacheProfileCollection ^ get(); };
[System.Configuration.ConfigurationProperty("outputCacheProfiles")]
public System.Web.Configuration.OutputCacheProfileCollection OutputCacheProfiles { get; }
[<System.Configuration.ConfigurationProperty("outputCacheProfiles")>]
member this.OutputCacheProfiles : System.Web.Configuration.OutputCacheProfileCollection
Public ReadOnly Property OutputCacheProfiles As OutputCacheProfileCollection
Hodnota vlastnosti
A OutputCacheProfileCollection objektů OutputCacheProfile .
- Atributy
Příklady
Následující příklad kódu ukazuje, jak použít OutputCacheProfiles vlastnost .
// Get the current OutputCacheProfiles property value.
OutputCacheProfileCollection outputCacheProfilesValue =
outputCacheSettings.OutputCacheProfiles;
' Get the current OutputCacheProfiles property value.
Dim outputCacheProfilesValue _
As OutputCacheProfileCollection = _
outputCacheSettings.OutputCacheProfiles
Poznámky
Vlastnost OutputCacheProfiles umožňuje programový přístup k elementu outputCacheProfiles
v konfiguračním souboru. Vlastnost můžete použít OutputCacheProfiles k úpravě elementu outputCacheProfiles
programově.
Oddíl outputCacheProfiles
obsahuje OutputCacheProfile objekty, které představují nastavení výstupní mezipaměti, která mohou být použita stránkami v aplikaci. Tato nastavení lze použít na stránku nastavením atributu CacheProfile
@ OutputCache direktivy . Použijte profil k řízení atributů ukládání do mezipaměti, jako jsou závislosti, umístění mezipaměti a čas vypršení platnosti mezipaměti.
@ OutputCache direktiva může přepsat všechna nastavení obsažená v objektu s OutputCacheProfile výjimkou Enabled vlastnosti . Tím zajistíte, že můžete povolit nebo zakázat direktivu OutputCacheProfile bez nutnosti upravovat direktivy na všech stránkách, které by ji mohly přepsat.
Platí pro
Viz také
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