DataFormWebPart.AutoRefreshInterval property

Gets or sets the rate, in seconds, at which a dataview automatically refreshes.

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

Syntax

'Declaration
<PersistenceModeAttribute(PersistenceMode.Attribute)> _
<PersonalizableAttribute(PersonalizationScope.Shared)> _
<WebBrowsableAttribute(True)> _
<ResourcesAttribute("DataFormWebPartAutoRefreshInterval", "DataFormWebPartAJAXOptions",  _
    "DataFormWebPartAutoRefreshIntervalDescription")> _
Public Overridable Property AutoRefreshInterval As Integer
    Get
    Set
'Usage
Dim instance As DataFormWebPart
Dim value As Integer

value = instance.AutoRefreshInterval

instance.AutoRefreshInterval = value
[PersistenceModeAttribute(PersistenceMode.Attribute)]
[PersonalizableAttribute(PersonalizationScope.Shared)]
[WebBrowsableAttribute(true)]
[ResourcesAttribute("DataFormWebPartAutoRefreshInterval", "DataFormWebPartAJAXOptions", 
    "DataFormWebPartAutoRefreshIntervalDescription")]
public virtual int AutoRefreshInterval { get; set; }

Property value

Type: System.Int32
The length of time it takes to refresh the dataview asynchronously.

Exceptions

Exception Condition
NotSupportedException

Value is less than 15 seconds.

Remarks

The default is 60 seconds.

See also

Reference

DataFormWebPart class

DataFormWebPart members

Microsoft.SharePoint.WebPartPages namespace