OutputCacheAttribute.Duration Property


Gets or sets the cache duration, in seconds.

Namespace:   System.Web.Mvc
Assembly:  System.Web.Mvc (in System.Web.Mvc.dll)


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

Property Value

Type: System.Int32

The cache duration.


The time, in seconds, that the output is cached.

See Also

OutputCacheAttribute Class
System.Web.Mvc Namespace

Return to top