Bagikan melalui


OutputCacheProfile.Location Properti

Definisi

Mendapatkan atau mengatur lokasi cache output.

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

Nilai Properti

Salah OutputCacheLocation satu nilai enumerasi. Default adalah Any.

Atribut

Contoh

Contoh kode berikut menunjukkan cara menggunakan Location properti .


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

Keterangan

Jika Location diatur ke Any, cache output dapat ditemukan di klien browser, tempat permintaan berasal; di server proksi, atau server lain, yang berpartisipasi dalam permintaan; atau di server tempat permintaan diproses.

Berlaku untuk

Lihat juga