Partager via


OutputCacheProfile.Location Propriété

Définition

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