SystemWebCachingSectionGroup.OutputCache Proprietà

Definizione

Ottiene la sezione outputCache contenuta all'interno della configurazione.

public:
 property System::Web::Configuration::OutputCacheSection ^ OutputCache { System::Web::Configuration::OutputCacheSection ^ get(); };
[System.Configuration.ConfigurationProperty("outputCache")]
public System.Web.Configuration.OutputCacheSection OutputCache { get; }
[<System.Configuration.ConfigurationProperty("outputCache")>]
member this.OutputCache : System.Web.Configuration.OutputCacheSection
Public ReadOnly Property OutputCache As OutputCacheSection

Valore della proprietà

OutputCacheSection

Oggetto OutputCacheSection.

Attributi

Esempio

Nell'esempio di codice seguente viene illustrato come ottenere l'oggetto OutputCacheSection dal file di configurazione di un'applicazione Web esistente.


// Get the .<outputCache> section
OutputCacheSection outputCache =
    cachingSectionGroup.OutputCache;

// Display one of its properties.
msg = String.Format(
"Enable output cache: {0}\n",
outputCache.EnableOutputCache.ToString());

Console.Write(msg);
' Get the .<outputCache> section
Dim outputCache _
As OutputCacheSection = _
cachingSectionGroup.OutputCache

' Display one of its properties.
msg = String.Format( _
"Enable output cache: {0}" + _
ControlChars.Lf, _
outputCache.EnableOutputCache.ToString())

Console.Write(msg)

Commenti

L'oggetto OutputCacheSection fa riferimento alla sezione outputCache del file di configurazione.

Si applica a

Vedi anche