DomainDataSource.RefreshInterval Property

WCF RIA Services

[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)

public TimeSpan RefreshInterval { get; set; }

Property Value

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

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.