OutputCacheSettingsSection.OutputCacheProfiles Eigenschap

Definitie

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

Waarde van eigenschap

Een OutputCacheProfileCollection van OutputCacheProfile objecten.

Kenmerken

Voorbeelden

In het volgende codevoorbeeld ziet u hoe u de OutputCacheProfiles eigenschap gebruikt.

// Get the current OutputCacheProfiles property value.
OutputCacheProfileCollection outputCacheProfilesValue =
  outputCacheSettings.OutputCacheProfiles;
' Get the current OutputCacheProfiles property value.
  Dim outputCacheProfilesValue _
  As OutputCacheProfileCollection = _
  outputCacheSettings.OutputCacheProfiles

Opmerkingen

Met de OutputCacheProfiles eigenschap kunt u programmatisch toegang krijgen tot het outputCacheProfiles element in een configuratiebestand. U kunt de OutputCacheProfiles eigenschap gebruiken om het outputCacheProfiles element programmatisch te wijzigen.

De outputCacheProfiles sectie bevat OutputCacheProfile objecten die uitvoercache-instellingen vertegenwoordigen die kunnen worden gebruikt door pagina's in de toepassing. Deze instellingen kunnen worden toegepast op een pagina door het CacheProfile kenmerk van de @OutputCache-instructie in te stellen. Pas het profiel toe om cachekenmerken te beheren, zoals afhankelijkheden, cachelocatie en verlooptijd van de cache.

De instructie @ OutputCache kan alle instellingen overschrijven die zijn opgenomen in een OutputCacheProfile behalve de Enabled eigenschap. Dit is om ervoor te zorgen dat u de OutputCacheProfile instructies kunt in- of uitschakelen zonder dat u de instructies hoeft te wijzigen op alle pagina's die deze mogelijk hebben overschreven.

Van toepassing op

Zie ook