OutputCacheProfile.Location Propriedade

Definição

Obtém ou define a localização da cache de saída.

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

Valor de Propriedade

Um dos OutputCacheLocation valores de enumeração. A predefinição é Any.

Atributos

Exemplos

O seguinte exemplo de código mostra como usar a Location propriedade.


// 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

Observações

Se Location for definido para Any, a cache de saída pode estar localizada no cliente do navegador, onde o pedido se originou; num servidor proxy, ou em qualquer outro servidor, que participe no pedido; ou no servidor onde o pedido foi processado.

Aplica-se a

Ver também