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
)

Parameters

newData
Type: System.Object

The data that is the result of the query.

error
Type: System.Exception

The error that occurred while running the query. This value is null if there is no error.

completionWork
Type: System.Windows.Threading.DispatcherOperationCallback

Optional delegate that is used to execute completion work on the UI thread, for example, to set additional properties.

callbackArguments
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
Show: