ResponseCacheAttribute.Duration Propriété

Définition

Obtient ou définit la durée en secondes pendant laquelle la réponse est mise en cache. Cela définit « max-age » dans l’en-tête « Cache-control ».

public:
 property int Duration { int get(); void set(int value); };
public int Duration { get; set; }
member this.Duration : int with get, set
Public Property Duration As Integer

Valeur de propriété

S’applique à