OutputCacheProfile.Location Eigenschap
Definitie
Belangrijk
Bepaalde informatie heeft betrekking op een voorlopige productversie die aanzienlijk kan worden gewijzigd voordat deze wordt uitgebracht. Microsoft biedt geen enkele expliciete of impliciete garanties met betrekking tot de informatie die hier wordt verstrekt.
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.