Condividi tramite


DataFormWebPart.AutoRefresh Property

Gets or sets a value that indicates whether the automatic refresh is enabled.

Namespace:  Microsoft.SharePoint.WebPartPages
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No

Syntax

'Declaration
<PersistenceModeAttribute(PersistenceMode.Attribute)> _
<PersonalizableAttribute(PersonalizationScope.Shared)> _
<WebBrowsableAttribute(True)> _
<ResourcesAttribute("DataFormWebPartAutoRefresh", "DataFormWebPartAJAXOptions",  _
    "DataFormWebPartAutoRefreshDescription")> _
Public Overridable Property AutoRefresh As Boolean
    Get
    Set
'Usage
Dim instance As DataFormWebPart
Dim value As Boolean

value = instance.AutoRefresh

instance.AutoRefresh = value
[PersistenceModeAttribute(PersistenceMode.Attribute)]
[PersonalizableAttribute(PersonalizationScope.Shared)]
[WebBrowsableAttribute(true)]
[ResourcesAttribute("DataFormWebPartAutoRefresh", "DataFormWebPartAJAXOptions", 
    "DataFormWebPartAutoRefreshDescription")]
public virtual bool AutoRefresh { get; set; }

Property Value

Type: System.Boolean
true if the automatic refresh is enabled; otherwise, false.

Remarks

If the AutoRefresh is set to true, the AsyncRefresh will also be set to true.

See Also

Reference

DataFormWebPart Class

DataFormWebPart Members

Microsoft.SharePoint.WebPartPages Namespace