Aracılığıyla paylaş


OutputCacheProfile.Location Özellik

Tanım

Çıktı önbelleği konumunu alır veya ayarlar.

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

Özellik Değeri

Numaralandırma değerlerinden OutputCacheLocation biri. Varsayılan değer: Any.

Öznitelikler

Örnekler

Aşağıdaki kod örneği özelliğinin Location nasıl kullanılacağını gösterir.


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

Açıklamalar

olarak ayarlanırsa LocationAny, çıkış önbelleği isteğin kaynaklandığı tarayıcı istemcisinde, bir ara sunucuda veya isteğe katılan başka bir sunucuda veya isteğin işlendiği sunucuda bulunabilir.

Şunlara uygulanır

Ayrıca bkz.