Compartilhar via


OutputCacheAttribute.UseSlidingExpiration 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 or sets a value that indicates whether the duration uses a sliding expiration or an absolute expiration.

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

Syntax

'Declaration
Public Property UseSlidingExpiration As Boolean
    Get
    Set
'Usage
Dim instance As OutputCacheAttribute
Dim value As Boolean

value = instance.UseSlidingExpiration

instance.UseSlidingExpiration = value
public bool UseSlidingExpiration { get; set; }
public:
property bool UseSlidingExpiration {
    bool get ();
    void set (bool value);
}
member UseSlidingExpiration : bool with get, set
function get UseSlidingExpiration () : boolean
function set UseSlidingExpiration (value : boolean)

Property Value

Type: System.Boolean
true if the duration uses a sliding expiration; false if it uses an absolute expiration.

See Also

Reference

OutputCacheAttribute Class

System.ServiceModel.DomainServices.Server Namespace