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
Available since 3.0
Return to top