Share via


DomainDataSource.RefreshInterval Property

[WCF RIA Services Version 1 Service Pack 2 is compatible with either .NET framework 4 or .NET Framework 4.5, and with either Silverlight 4 or Silverlight 5.]

Gets or sets the interval between automatic Load operations to refresh the data with any changes that may have occurred on the server.

Namespace:  System.Windows.Controls
Assembly:  System.Windows.Controls.DomainServices (in System.Windows.Controls.DomainServices.dll)

Syntax

'Declaration
Public Property RefreshInterval As TimeSpan
    Get
    Set
'Usage
Dim instance As DomainDataSource
Dim value As TimeSpan

value = instance.RefreshInterval

instance.RefreshInterval = value
public TimeSpan RefreshInterval { get; set; }
public:
property TimeSpan RefreshInterval {
    TimeSpan get ();
    void set (TimeSpan value);
}
member RefreshInterval : TimeSpan with get, set
function get RefreshInterval () : TimeSpan
function set RefreshInterval (value : TimeSpan)

Property Value

Type: System.TimeSpan
The duration between two consecutive data refresh operations.

Remarks

When a non-zero TimeSpan is specified, a Load operation is automatically invoked each time the interval elapses, as long as CanLoad is true. When this property is set, a timer starts, regardless of the value of the AutoLoad property or whether a Load has been executed previously.

See Also

Reference

DomainDataSource Class

System.Windows.Controls Namespace

Other Resources

DomainDataSource