OutputCacheProfile.Location Eigenschaft
Definition
Wichtig
Einige Informationen beziehen sich auf Vorabversionen, die vor dem Release ggf. grundlegend überarbeitet werden. Microsoft übernimmt hinsichtlich der hier bereitgestellten Informationen keine Gewährleistungen, seien sie ausdrücklich oder konkludent.
Dient zum Abrufen oder Festlegen des Ausgabecachespeicherorts.
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
Eigenschaftswert
Einer der OutputCacheLocation Enumerationswerte. Der Standardwert lautet Any.
- Attribute
Beispiele
Das folgende Codebeispiel zeigt, wie die Location Eigenschaft verwendet wird.
// 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
Hinweise
Wenn Location dieser wert festgelegt Anyist, kann sich der Ausgabecache auf dem Browserclient befinden, auf dem die Anforderung stammt; auf einem Proxyserver oder auf einem anderen Server, der an der Anforderung teilnimmt; oder auf dem Server, auf dem die Anforderung verarbeitet wurde.