DataSourceProvider::OnQueryFinished Method (Object^, Exception^, DispatcherOperationCallback^, Object^)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com 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
)

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: