OutputCacheAttribute.Duration Property

[WCF RIA Services Version 1 Service Pack 2 is compatible with either .NET framework 4 or .NET Framework 4.5, and with either Silverlight 4 or Silverlight 5.]

Gets the duration in seconds for which the response should be cached.

Namespace:  System.ServiceModel.DomainServices.Server
Assembly:  System.ServiceModel.DomainServices.Server (in System.ServiceModel.DomainServices.Server.dll)

Syntax

'Declaration
Public Property Duration As Integer
    Get
    Private Set
'Usage
Dim instance As OutputCacheAttribute
Dim value As Integer

value = instance.Duration
public int Duration { get; private set; }
public:
property int Duration {
    int get ();
    private: void set (int value);
}
member Duration : int with get, private set
function get Duration () : int
private function set Duration (value : int)

Property Value

Type: System.Int32
The duration in seconds for which the response should be cached.

See Also

Reference

OutputCacheAttribute Class

System.ServiceModel.DomainServices.Server Namespace