Share via


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)
Available in Sandboxed Solutions: No

Syntax

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

value = instance.AutoRefreshInterval

instance.AutoRefreshInterval = value
[WebBrowsableAttribute(true)]
[ResourcesAttribute("DataFormWebPartAutoRefreshInterval", "DataFormWebPartAJAXOptions", 
    "DataFormWebPartAutoRefreshIntervalDescription")]
[PersonalizableAttribute(PersonalizationScope.Shared)]
[PersistenceModeAttribute(PersistenceMode.Attribute)]
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