SystemWebCachingSectionGroup.OutputCache Propriété
Définition
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 la section outputCache
contenue dans la configuration.
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
Valeur de propriété
Objet OutputCacheSection.
- Attributs
Exemples
L’exemple de code suivant montre comment obtenir l’objet OutputCacheSection à partir du fichier de configuration d’une application web existante.
// 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)
Remarques
L’objet OutputCacheSection fait référence à la section outputCache
du fichier de configuration.
S’applique à
Voir aussi
Commentaires
https://aka.ms/ContentUserFeedback.
Bientôt disponible : Tout au long de l’année 2024, nous abandonnerons progressivement le mécanisme de retour d’information GitHub Issues pour le remplacer par un nouveau système de commentaires. Pour plus d’informations, consultez :Soumettre et afficher des commentaires pour