HttpCachePolicyWrapper.SetMaxAge(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: max-age.
public:
override void SetMaxAge(TimeSpan delta);
public override void SetMaxAge(TimeSpan delta);
override this.SetMaxAge : TimeSpan -> unit
Public Overrides Sub SetMaxAge (delta As TimeSpan)
Paramètres
- delta
- TimeSpan
Intervalle de temps à affecter à l’en-tête Cache-Control: max-age.
Exceptions
delta est inférieur à 0 ou supérieur à un an.