DataSourceProvider.OnQueryFinished Method

Definition

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

Overloads

OnQueryFinished(Object)

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

OnQueryFinished(Object, Exception, DispatcherOperationCallback, Object)

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

OnQueryFinished(Object)

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

C#
protected void OnQueryFinished(object newData);

Parameters

newData
Object

The data that is the result of the query.

Remarks

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.

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10

OnQueryFinished(Object, Exception, DispatcherOperationCallback, Object)

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

C#
protected virtual void OnQueryFinished(object newData, Exception error, System.Windows.Threading.DispatcherOperationCallback completionWork, object callbackArguments);

Parameters

newData
Object

The data that is the result of the query.

error
Exception

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

completionWork
DispatcherOperationCallback

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

callbackArguments
Object

Optional arguments to send as a parameter with the completionWork delegate.

Remarks

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.

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10