SystemWebCachingSectionGroup.Cache Eigenschaft
Definition
Wichtig
Einige Informationen beziehen sich auf Vorabversionen, die vor dem Release ggf. grundlegend überarbeitet werden. Microsoft übernimmt hinsichtlich der hier bereitgestellten Informationen keine Gewährleistungen, seien sie ausdrücklich oder konkludent.
Ruft den cache Abschnitt in der Konfiguration ab.
public:
property System::Web::Configuration::CacheSection ^ Cache { System::Web::Configuration::CacheSection ^ get(); };
[System.Configuration.ConfigurationProperty("cache")]
public System.Web.Configuration.CacheSection Cache { get; }
[<System.Configuration.ConfigurationProperty("cache")>]
member this.Cache : System.Web.Configuration.CacheSection
Public ReadOnly Property Cache As CacheSection
Eigenschaftswert
Das CacheSection-Objekt.
- Attribute
Beispiele
Das folgende Codebeispiel zeigt, wie Das CacheSection Objekt aus der Konfigurationsdatei einer vorhandenen Webanwendung abgerufen wird.
// Get the <cache> section.
CacheSection cache =
cachingSectionGroup.Cache;
// Display one of its properties.
msg = String.Format(
"Cache disable expiration: {0}\n",
cache.DisableExpiration);
Console.Write(msg);
' Get the <cache> section.
Dim cache As CacheSection = _
cachingSectionGroup.Cache
' Display one of its properties.
msg = String.Format( _
"Cache disable expiration: {0}" + _
ControlChars.Lf, cache.DisableExpiration)
Console.Write(msg)
Hinweise
Das CacheSection Objekt bezieht sich auf den cache Abschnitt der Konfigurationsdatei. Sie können die CacheSection Klasse verwenden, um den cache Abschnitt programmgesteuert zu ändern.