OutputCacheSection.EnableFragmentCache Propiedad

Definición

Obtiene o establece un valor que indica si la caché por fragmentos está habilitada.

public:
 property bool EnableFragmentCache { bool get(); void set(bool value); };
[System.Configuration.ConfigurationProperty("enableFragmentCache", DefaultValue=true)]
public bool EnableFragmentCache { get; set; }
[<System.Configuration.ConfigurationProperty("enableFragmentCache", DefaultValue=true)>]
member this.EnableFragmentCache : bool with get, set
Public Property EnableFragmentCache As Boolean

Valor de propiedad

Boolean

Es true si la caché por fragmentos está habilitada; en caso contrario, es false. De manera predeterminada, es true.

Atributos

Ejemplos

En el ejemplo de código siguiente se muestra cómo utilizar la propiedad EnableFragmentCache.


// Get the current EnabledFragmentCache.
Boolean enabledFragmentCache =
    outputCacheSection.EnableFragmentCache;

// Set the EnabledFragmentCache.
outputCacheSection.EnableFragmentCache = false;
' Get the current EnabledFragmentCache.
  Dim enabledFragmentCache As [Boolean] = _
  outputCacheSection.EnableFragmentCache

' Set the EnabledFragmentCache.
outputCacheSection.EnableFragmentCache = False

Comentarios

Si la EnableFragmentCache propiedad se establece falseen , no se almacena en caché ninguna salida de control de usuario, independientemente de la directiva @ OutputCache o del perfil de almacenamiento en caché usado. Para obtener más información, vea OutputCacheSettingsSection y OutputCacheProfile.

Se aplica a

Consulte también