OutputCacheSettingsSection.OutputCacheProfiles Propriété
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Obtient 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
OutputCacheProfileCollection d'objets OutputCacheProfile.
- Attributs
L'exemple de code suivant montre comment utiliser la propriété OutputCacheProfiles.
// Get the current OutputCacheProfiles property value.
OutputCacheProfileCollection outputCacheProfilesValue =
outputCacheSettings.OutputCacheProfiles;
' Get the current OutputCacheProfiles property value.
Dim outputCacheProfilesValue _
As OutputCacheProfileCollection = _
outputCacheSettings.OutputCacheProfiles
La OutputCacheProfiles propriété vous permet d’accéder par programmation à l’élément outputCacheProfiles
dans un fichier de configuration. Vous pouvez utiliser la OutputCacheProfiles propriété pour modifier l’élément outputCacheProfiles
par programmation.
La outputCacheProfiles
section contient des OutputCacheProfile objets qui représentent les paramètres de cache de sortie qui peuvent être utilisés par les pages de l’application. Ces paramètres peuvent être appliqués à une page en définissant l’attribut CacheProfile
de la directive @ OutputCache . Appliquez le profil pour contrôler les attributs de mise en cache tels que les dépendances, l’emplacement du cache et la durée d’expiration du cache.
La directive @ OutputCache peut remplacer tous les paramètres contenus par un, à l’exception de OutputCacheProfile la Enabled propriété . Il s’agit de vous assurer que vous pouvez activer ou désactiver le OutputCacheProfile sans avoir à modifier les directives dans toutes les pages qui ont pu le remplacer.
Produit | Versions |
---|---|
.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 |
Commentaires sur .NET
.NET est un projet open source. Sélectionnez un lien pour fournir des commentaires: