HttpCachePolicyBase.SetCacheability Methode

Definitie

Wanneer de header wordt overschreven in een afgeleide klasse, stelt u de Cache-Control header in op een van de HttpCacheability waarden.

Overloads

Name Description
SetCacheability(HttpCacheability)

Wanneer deze wordt overschreven in een afgeleide klasse, stelt u de Cache-Control header in op de opgegeven HttpCacheability waarde.

SetCacheability(HttpCacheability, String)

Wanneer deze wordt overschreven in een afgeleide klasse, stelt u de Cache-Control header in op de opgegeven HttpCacheability waarde en voegt u een uitbreiding toe aan de instructie.

SetCacheability(HttpCacheability)

Wanneer deze wordt overschreven in een afgeleide klasse, stelt u de Cache-Control header in op de opgegeven HttpCacheability waarde.

public:
 virtual void SetCacheability(System::Web::HttpCacheability cacheability);
public virtual void SetCacheability(System.Web.HttpCacheability cacheability);
abstract member SetCacheability : System.Web.HttpCacheability -> unit
override this.SetCacheability : System.Web.HttpCacheability -> unit
Public Overridable Sub SetCacheability (cacheability As HttpCacheability)

Parameters

cacheability
HttpCacheability

De HttpCacheability opsommingswaarde waaraan de header moet worden ingesteld.

Uitzonderingen

Van toepassing op

SetCacheability(HttpCacheability, String)

Wanneer deze wordt overschreven in een afgeleide klasse, stelt u de Cache-Control header in op de opgegeven HttpCacheability waarde en voegt u een uitbreiding toe aan de instructie.

public:
 virtual void SetCacheability(System::Web::HttpCacheability cacheability, System::String ^ field);
public virtual void SetCacheability(System.Web.HttpCacheability cacheability, string field);
abstract member SetCacheability : System.Web.HttpCacheability * string -> unit
override this.SetCacheability : System.Web.HttpCacheability * string -> unit
Public Overridable Sub SetCacheability (cacheability As HttpCacheability, field As String)

Parameters

cacheability
HttpCacheability

De HttpCacheability opsommingswaarde waaraan de header moet worden ingesteld.

field
String

De extensie voor cachebeheer die moet worden toegevoegd aan de header.

Uitzonderingen

Van toepassing op