This documentation is archived and is not being maintained.

DataSourceProvider.InitialLoad Method

Starts the initial query to the underlying data model. The result is returned on the Data property.

Namespace:  System.Windows.Data
Assembly:  WindowsBase (in WindowsBase.dll)

public void InitialLoad()

This method is typically called by the binding engine when dependent data bindings are activated. Set IsInitialLoadEnabled to false to prevent or delay the automatic loading of data.

The InitialLoad method can be called multiple times. The provider ignores subsequent calls once it is busy executing the initial query; the provider does not restart an already running query when InitialLoad is called again. When the query finishes successfully, any InitialLoad call still does not re-query data. The InitialLoad operation is typically asynchronous, a DataChanged event is raised when the Data property assumed a new value.

The application calls Refresh to cause a refresh of the data.

.NET Framework

Supported in: 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Show: