CacheProfile.Duration Vlastnost

Definice

Získá nebo nastaví dobu trvání v sekundách, po kterou je odpověď uložena v mezipaměti. Pokud je tato vlastnost nastavená na hodnotu, která není null, hodnota "max-age" v hlavičce "Cache-control" je nastavena Responsev .

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

Hodnota vlastnosti

Platí pro