Compartir vía


SystemWebCachingSectionGroup.OutputCache Propiedad

Definición

Obtiene la sección outputCache contenida en la configuración.

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

Valor de propiedad

OutputCacheSection

Objeto OutputCacheSection.

Atributos

Ejemplos

En el ejemplo de código siguiente se muestra cómo obtener el OutputCacheSection objeto del archivo de configuración de una aplicación web existente.


// 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)

Comentarios

El objeto OutputCacheSection hace referencia a la sección outputCache del archivo de configuración.

Se aplica a

Consulte también