CacheProfile.Duration Vlastnost

Definice

Získá nebo nastaví dobu v sekundách, po kterou je odpověď uložená v mezipaměti. Pokud je tato vlastnost nastavena na hodnotu, která není null, je v souboru nastavena hodnota "maximální stáří" v hlavičce "Cache-Control" Response .

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

Nullable<Int32>

Platí pro