次の方法で共有


OutputCacheAttribute.Duration Property

Gets or sets the cache duration, in seconds.

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

Syntax

'Declaration
Public Property Duration As Integer
    Get
    Set
public int Duration { get; set; }
public:
property int Duration {
    int get ();
    void set (int value);
}

Property Value

Type: System.Int32
The cache duration.

Remarks

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

See Also

Reference

OutputCacheAttribute Class

System.Web.Mvc Namespace