DomainDataSourceView.ICollectionView.DeferRefresh 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.]

Enters a defer cycle that you can use to merge changes to the view and delay automatic refresh.

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

Syntax

'Declaration
Private Function DeferRefresh As IDisposable
    Implements ICollectionView.DeferRefresh
'Usage
Dim instance As DomainDataSourceView
Dim returnValue As IDisposable

returnValue = CType(instance, ICollectionView).DeferRefresh()
IDisposable ICollectionView.DeferRefresh()
private:
virtual IDisposable^ DeferRefresh() sealed = ICollectionView::DeferRefresh
private abstract DeferRefresh : unit -> IDisposable 
private override DeferRefresh : unit -> IDisposable 
JScript supports the use of explicit interface implementations, but not the declarations of new ones.

Return Value

Type: System.IDisposable
The typical usage is to create a using scope with an implementation of this method and then include multiple view-changing calls within the scope. The implementation should delay automatic refresh until after the using scope exits.

Implements

ICollectionView.DeferRefresh()

Remarks

This member is an explicit interface member implementation. It can be used only when the DomainDataSourceView instance is cast to an ICollectionView interface.

See Also

Reference

DomainDataSourceView Class

System.Windows.Controls Namespace