BaseXmlDataSource.CacheDuration property

Gets or sets the amount of time in seconds that the cache is valid.

Namespace:  Microsoft.SharePoint.WebControls
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
<TypeConverterAttribute(GetType(DataSourceCacheDurationConverter))> _
Public Overridable Property CacheDuration As Integer
    Get
    Set
'Usage
Dim instance As BaseXmlDataSource
Dim value As Integer

value = instance.CacheDuration

instance.CacheDuration = value
[TypeConverterAttribute(typeof(DataSourceCacheDurationConverter))]
public virtual int CacheDuration { get; set; }

Property value

Type: System.Int32
A 32-bit signed integer indicating the amount of time in seconds that the cache is valid.

See also

Reference

BaseXmlDataSource class

BaseXmlDataSource members

Microsoft.SharePoint.WebControls namespace