HttpRuntimeSection.EnableKernelOutputCache Eigenschap

Definitie

Hiermee wordt een waarde opgehaald of ingesteld die aangeeft of uitvoercache is ingeschakeld.

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

Waarde van eigenschap

true als uitvoercache is ingeschakeld; anders, false. De standaardwaarde is true.

Kenmerken

Voorbeelden

In het volgende voorbeeld ziet u hoe u de EnableKernelOutputCache eigenschap gebruikt.

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

Opmerkingen

Als u een antwoord in de cache wilt opslaan, moet aan de volgende criteria worden voldaan:

  • Caching moet expliciet worden ingeschakeld door een pagina-instructie of door de caching-API.

  • Caching moet een verloopbeleid hebben, zodat de kernel weet wanneer deze moet worden verwijderd.

  • Caching kan geen variabele headers of parameters hebben.

  • De aanvraag mag geen verificatie vereisen.

Note

Deze eigenschap is alleen relevant wanneer Internet Information Services (IIS) versie 6.0 of hoger is geïnstalleerd.

Van toepassing op

Zie ook