OutputCacheSettingsSection.OutputCacheProfiles Propriedade
Definição
Obtém um OutputCacheProfileCollection.Gets a OutputCacheProfileCollection.
public:
property System::Web::Configuration::OutputCacheProfileCollection ^ OutputCacheProfiles { System::Web::Configuration::OutputCacheProfileCollection ^ get(); };
[System.Configuration.ConfigurationProperty("outputCacheProfiles")]
public System.Web.Configuration.OutputCacheProfileCollection OutputCacheProfiles { get; }
[<System.Configuration.ConfigurationProperty("outputCacheProfiles")>]
member this.OutputCacheProfiles : System.Web.Configuration.OutputCacheProfileCollection
Public ReadOnly Property OutputCacheProfiles As OutputCacheProfileCollection
Valor da propriedade
Um OutputCacheProfileCollection de OutputCacheProfile objetosA OutputCacheProfileCollection of OutputCacheProfile objects
- Atributos
Exemplos
O exemplo de código a seguir mostra como usar a OutputCacheProfiles propriedade.The following code example shows how to use the OutputCacheProfiles property.
// Get the current OutputCacheProfiles property value.
OutputCacheProfileCollection outputCacheProfilesValue =
outputCacheSettings.OutputCacheProfiles;
' Get the current OutputCacheProfiles property value.
Dim outputCacheProfilesValue _
As OutputCacheProfileCollection = _
outputCacheSettings.OutputCacheProfiles
Comentários
A OutputCacheProfiles propriedade permite que você acesse o elemento de forma programática outputCacheProfiles em um arquivo de configuração.The OutputCacheProfiles property allows you to programmatically access the outputCacheProfiles element in a configuration file. Você pode usar a OutputCacheProfiles propriedade para modificar o outputCacheProfiles elemento programaticamente.You can use the OutputCacheProfiles property to modify the outputCacheProfiles element programmatically.
A outputCacheProfiles seção contém OutputCacheProfile objetos que representam as configurações de cache de saída que podem ser usadas por páginas no aplicativo.The outputCacheProfiles section contains OutputCacheProfile objects that represent output cache settings that may be used by pages in the application. Essas configurações podem ser aplicadas a uma página definindo o CacheProfile atributo da diretiva @ OutputCache .These settings can be applied to a page by setting the CacheProfile attribute of the @ OutputCache directive. Aplique o perfil para controlar os atributos de cache, como dependências, local do cache e tempo de expiração do cache.Apply the profile to control caching attributes such as dependencies, cache location, and cache expiration time.
A diretiva @ OutputCache pode substituir todas as configurações contidas por um OutputCacheProfile exceto a Enabled propriedade.The @ OutputCache directive can override all the settings contained by an OutputCacheProfile except the Enabled property. Isso é para garantir que você possa habilitar ou desabilitar o OutputCacheProfile sem a necessidade de modificar as diretivas em todas as páginas que podem ter sido substituídas.This is to ensure you can enable or disable the OutputCacheProfile without having to modify the directives in all the pages that might have overridden it.