Share via


OutputCacheSettingsSection.OutputCacheProfiles Eigenschaft

Definition

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

Eigenschaftswert

OutputCacheProfileCollection

Eine OutputCacheProfileCollection von OutputCacheProfile-Objekten.

Attribute

Beispiele

Im folgenden Codebeispiel wird die Verwendung der OutputCacheProfiles-Eigenschaft veranschaulicht.

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

Hinweise

Mit der OutputCacheProfiles Eigenschaft können Sie programmgesteuert auf das outputCacheProfiles Element in einer Konfigurationsdatei zugreifen. Sie können die OutputCacheProfiles Eigenschaft verwenden, um das outputCacheProfiles Element programmgesteuert zu ändern.

Der outputCacheProfiles Abschnitt enthält OutputCacheProfile Objekte, die Ausgabecacheeinstellungen darstellen, die von Seiten in der Anwendung verwendet werden können. Diese Einstellungen können auf eine Seite angewendet werden, indem das CacheProfile Attribut der @OutputCache-Direktive festgelegt wird. Wenden Sie das Profil an, um Zwischenspeicherungsattribute wie Abhängigkeiten, Cachespeicherort und Cacheablaufzeit zu steuern.

Die @OutputCache-Direktive kann alle Einstellungen OutputCacheProfile außer der Enabled Eigenschaft überschreiben. Dies besteht darin, sicherzustellen, dass Sie die OutputCacheProfile Direktiven auf allen Seiten aktivieren oder deaktivieren müssen, die sie möglicherweise überschrieben haben.

Gilt für

Siehe auch