DomainDataSource.DeferLoad Method

[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.]

Used to group multiple data loading operations into a single load operation.

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

Syntax

'Declaration
Public Function DeferLoad As IDisposable
'Usage
Dim instance As DomainDataSource
Dim returnValue As IDisposable

returnValue = instance.DeferLoad()
public IDisposable DeferLoad()
public:
IDisposable^ DeferLoad()
member DeferLoad : unit -> IDisposable 
public function DeferLoad() : IDisposable

Return Value

Type: System.IDisposable
A disposable object that will trigger a data loading operation when disposed.

Remarks

You use this method to prevent triggering multiple load operations when changing more than one load characteristic. Instead. you defer the resulting load into a single load that is triggered when the object returned from this method is disposed.

See Also

Reference

DomainDataSource Class

System.Windows.Controls Namespace