OutputCacheProfile.Location Proprietà

Definizione

Ottiene o imposta il percorso della cache di output.

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

Valore della proprietà

Uno dei valori dell'enumerazione OutputCacheLocation. Il valore predefinito è Any.

Attributi

Esempio

Nell'esempio di codice riportato di seguito viene illustrato come utilizzare la proprietà 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

Commenti

Se Location è impostato su Any, la cache di output può trovarsi nel client del browser, in cui ha avuto origine la richiesta, in un server proxy o in qualsiasi altro server, partecipando alla richiesta o nel server in cui è stata elaborata la richiesta.

Si applica a

Vedi anche