OutputCacheSection.EnableFragmentCache Propriedade
Neste artigo
Importante
Algumas informações se referem a produtos de pré-lançamento que podem ser substancialmente modificados antes do lançamento. A Microsoft não oferece garantias, expressas ou implícitas, das informações aqui fornecidas.
Obtém ou define um valor que indica se o cache do fragmento está habilitado.
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
true
se o cache de fragmentos estiver habilitado; caso contrário, false
. O padrão é true
.
- Atributos
O exemplo de código a seguir mostra como usar a EnableFragmentCache propriedade .
// 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
Se a EnableFragmentCache propriedade estiver definida como false
, nenhuma saída de controle de usuário será armazenada em cache, independentemente da diretiva @ OutputCache ou do perfil de cache usado. Para obter mais informações, consulte OutputCacheSettingsSection e OutputCacheProfile.
Produto | Versões |
---|---|
.NET Framework | 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
Comentários do .NET
O .NET é um projeto código aberto. Selecione um link para fornecer comentários: