OutputCacheProfile.Location Egenskap
Definition
Viktigt
En del information gäller för förhandsversionen av en produkt och kan komma att ändras avsevärt innan produkten blir allmänt tillgänglig. Microsoft lämnar inga garantier, uttryckliga eller underförstådda, avseende informationen som visas här.
Hämtar eller anger platsen för utdatacachen.
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
Egenskapsvärde
Ett av uppräkningsvärdena OutputCacheLocation . Standardvärdet är Any.
- Attribut
Exempel
Följande kodexempel visar hur du använder egenskapen Location .
// 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
Kommentarer
Om Location är inställt Anypå kan utdatacachen finnas på webbläsarklienten, där begäran har sitt ursprung, på en proxyserver eller någon annan server som deltar i begäran eller på den server där begäran bearbetades.