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()
You cannot use methods in XAML.

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.

Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5, 3.0