HttpCachePolicyWrapper.SetProxyMaxAge(TimeSpan) Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Affecte l’intervalle de temps spécifié à l’en-tête HTTP Cache-Control: s-maxage.
public:
override void SetProxyMaxAge(TimeSpan delta);
public override void SetProxyMaxAge(TimeSpan delta);
override this.SetProxyMaxAge : TimeSpan -> unit
Public Overrides Sub SetProxyMaxAge (delta As TimeSpan)
Paramètres
- delta
- TimeSpan
Intervalle de temps à affecter à l’en-tête Cache-Control: s-maxage.
Exceptions
delta est inférieur à 0.