Share via


OutputCacheProfile.Location Eigenschaft

Definition

Ruft den Speicherort des Ausgabecaches ab oder legt diesen fest.

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 ist Any.

Attribute

Beispiele

Im folgenden Codebeispiel wird die Verwendung der Location-Eigenschaft veranschaulicht.


// 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 auf Anyfestgelegt ist, kann sich der Ausgabecache auf dem Browserclient befinden, von dem die Anforderung stammt, auf einem Proxyserver oder einem anderen Server, der an der Anforderung teilnimmt, oder auf dem Server, auf dem die Anforderung verarbeitet wurde.

Gilt für:

Weitere Informationen