This documentation is archived and is not being maintained.

DataSourceProvider.OnQueryFinished Method (Object, Exception, DispatcherOperationCallback, Object)

Derived classes call this method to indicate that a query has finished.

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

protected virtual void OnQueryFinished(
	Object newData,
	Exception error,
	DispatcherOperationCallback completionWork,
	Object callbackArguments


Type: System.Object
The data that is the result of the query.
Type: System.Exception
The error that occurred while running the query. This value is null if there is no error.
Type: System.Windows.Threading.DispatcherOperationCallback
Optional delegate that is used to execute completion work on the UI thread, for example, to set additional properties.
Type: System.Object
Optional arguments to send as a parameter with the completionWork delegate.

This callback can be called from any thread. This implementation marshals back the result to the UI thread before setting any of the public properties and before raising any events.

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