HttpCachePolicyWrapper.SetCacheability Methode

Definitie

Hiermee stelt u de Cache-Control koptekst in op een van de HttpCacheability waarden.

Overloads

Name Description
SetCacheability(HttpCacheability)

Hiermee stelt u de Cache-Control header in op de opgegeven HttpCacheability waarde.

SetCacheability(HttpCacheability, String)

Hiermee stelt u de Cache-Control header in op de opgegeven HttpCacheability waarde en voegt u een uitbreiding toe aan de instructie.

SetCacheability(HttpCacheability)

Hiermee stelt u de Cache-Control header in op de opgegeven HttpCacheability waarde.

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

Parameters

cacheability
HttpCacheability

De HttpCacheability opsommingswaarde waaraan de header moet worden ingesteld.

Uitzonderingen

cacheability is geen van de opsommingswaarden.

Van toepassing op

SetCacheability(HttpCacheability, String)

Hiermee stelt u de Cache-Control header in op de opgegeven HttpCacheability waarde en voegt u een uitbreiding toe aan de instructie.

public:
 override void SetCacheability(System::Web::HttpCacheability cacheability, System::String ^ field);
public override void SetCacheability(System.Web.HttpCacheability cacheability, string field);
override this.SetCacheability : System.Web.HttpCacheability * string -> unit
Public Overrides 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

field is null.

cacheability is niet Private of NoCache.

Van toepassing op