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


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

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