HttpCachePolicyBase.SetCacheability Methode
Definitie
Belangrijk
Bepaalde informatie heeft betrekking op een voorlopige productversie die aanzienlijk kan worden gewijzigd voordat deze wordt uitgebracht. Microsoft biedt geen enkele expliciete of impliciete garanties met betrekking tot de informatie die hier wordt verstrekt.
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 |
| SetCacheability(HttpCacheability, String) |
Wanneer deze wordt overschreven in een afgeleide klasse, stelt u de |
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
Altijd.
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
Altijd.