OutputCacheProfile.Location Eigenschap

Definitie

Hiermee haalt u de locatie van de uitvoercache op of stelt u deze in.

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

Waarde van eigenschap

Een van de OutputCacheLocation opsommingswaarden. De standaardwaarde is Any.

Kenmerken

Voorbeelden

In het volgende codevoorbeeld ziet u hoe u de Location eigenschap gebruikt.


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

Opmerkingen

Als Location deze optie is ingesteld Any, kan de uitvoercache zich op de browserclient bevinden, waar de aanvraag afkomstig is; op een proxyserver of een andere server die deelneemt aan de aanvraag; of op de server waar de aanvraag is verwerkt.

Van toepassing op

Zie ook