Share via


DataViewWebPart.CacheDataTimeout property

Determines the length of time that elapses before the cache expires.

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

Syntax

'Declaration
<ResourcesAttribute("DataViewWebPartPartCacheDataTimeoutLiteral", "Miscellaneous",  _
    "DataViewWebPartPartCacheDataTimeoutDescription")> _
<WebPartStorageAttribute(Storage.Shared)> _
Public Property CacheDataTimeout As Integer
    Get
    Set
'Usage
Dim instance As DataViewWebPart
Dim value As Integer

value = instance.CacheDataTimeout

instance.CacheDataTimeout = value
[ResourcesAttribute("DataViewWebPartPartCacheDataTimeoutLiteral", "Miscellaneous", 
    "DataViewWebPartPartCacheDataTimeoutDescription")]
[WebPartStorageAttribute(Storage.Shared)]
public int CacheDataTimeout { get; set; }

Property value

Type: System.Int32
An integer indicating the number of seconds that elapse before the cache expires.

See also

Reference

DataViewWebPart class

DataViewWebPart members

Microsoft.SharePoint.WebPartPages namespace