Share via


CacheProfile.Duration Proprietà

Definizione

Ottiene o imposta la durata in secondi per cui la risposta viene memorizzata nella cache. Se questa proprietà è impostata su un valore non Null, l'intestazione "max-age" nell'intestazione Response"Cache-control" viene impostata in .

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)

Valore della proprietà

Si applica a