Share via


OutputCacheSettingsSection.OutputCacheProfiles Vlastnost

Definice

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é