HttpRuntimeSection.EnableKernelOutputCache Özellik
Tanım
Önemli
Bazı bilgiler ürünün ön sürümüyle ilgilidir ve sürüm öncesinde önemli değişiklikler yapılmış olabilir. Burada verilen bilgilerle ilgili olarak Microsoft açık veya zımni hiçbir garanti vermez.
Çıktı önbelleğinin etkinleştirilip etkinleştirilmediğini gösteren bir değer alır veya ayarlar.
public:
property bool EnableKernelOutputCache { bool get(); void set(bool value); };
[System.Configuration.ConfigurationProperty("enableKernelOutputCache", DefaultValue=true)]
public bool EnableKernelOutputCache { get; set; }
[<System.Configuration.ConfigurationProperty("enableKernelOutputCache", DefaultValue=true)>]
member this.EnableKernelOutputCache : bool with get, set
Public Property EnableKernelOutputCache As Boolean
Özellik Değeri
true çıktı önbelleğe alma etkinse; aksi takdirde , false. Varsayılan değer true değeridir.
- Öznitelikler
Örnekler
Aşağıdaki örnekte özelliğinin nasıl kullanılacağı gösterilmektedir EnableKernelOutputCache .
// Get the current EnableKernelOutputCache property value.
Response.Write("EnableKernelOutputCache: " +
configSection.EnableKernelOutputCache + "<br>");
// Set the EnableKernelOutputCache property to true.
configSection.EnableKernelOutputCache = true;
' Get the current EnableKernelOutputCache property value.
Response.Write("EnableKernelOutputCache: " & _
configSection.EnableKernelOutputCache & "<br>")
' Set the EnableKernelOutputCache property to true.
configSection.EnableKernelOutputCache = True
Açıklamalar
Bir yanıtı önbelleğe almak için aşağıdaki ölçütlerin karşılanması gerekir:
Önbelleğe alma, bir sayfa yönergesi veya önbelleğe alma API'si tarafından açıkça etkinleştirilmelidir.
Önbelleğe alma, çekirdeğin ne zaman atıldığını bilmesi için bir süre sonu ilkesine sahip olmalıdır.
Önbelleğe almada değişken üst bilgileri veya parametreleri olamaz.
İstek herhangi bir kimlik doğrulaması gerektirmemelidir.
Uyarı
Bu özellik yalnızca Internet Information Services (IIS) sürüm 6.0 veya üzeri yüklü olduğunda geçerlidir.