OutputCacheProfile.Location 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 ou définit l'emplacement du cache de sortie.
public:
property System::Web::UI::OutputCacheLocation Location { System::Web::UI::OutputCacheLocation get(); void set(System::Web::UI::OutputCacheLocation value); };
[System.Configuration.ConfigurationProperty("location")]
public System.Web.UI.OutputCacheLocation Location { get; set; }
[<System.Configuration.ConfigurationProperty("location")>]
member this.Location : System.Web.UI.OutputCacheLocation with get, set
Public Property Location As OutputCacheLocation
Valeur de propriété
Une des valeurs d'énumération OutputCacheLocation. La valeur par défaut est Any
.
- Attributs
Exemples
L'exemple de code suivant montre comment utiliser la propriété Location.
// Get the current Location.
System.Web.UI.OutputCacheLocation locationValue =
outputCacheProfile.Location;
// Set the Location property to null.
outputCacheProfile.Location =
System.Web.UI.OutputCacheLocation.Server;
' Get the current Location.
Dim locationValue _
As System.Web.UI.OutputCacheLocation = _
outputCacheProfile.Location
' Set the Location property to null.
outputCacheProfile.Location = _
System.Web.UI.OutputCacheLocation.Server
Remarques
Si Location est défini sur Any
, le cache de sortie peut se trouver sur le client de navigateur, d’où provient la demande , sur un serveur proxy ou tout autre serveur participant à la demande ; ou sur le serveur où la demande a été traitée.
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