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
)
protected void OnQueryFinished (
	Object newData, 
	Exception error, 
	DispatcherOperationCallback completionWork, 
	Object callbackArguments
)
protected function OnQueryFinished (
	newData : Object, 
	error : Exception, 
	completionWork : DispatcherOperationCallback, 
	callbackArguments : Object
)
You cannot use methods in XAML.

Parameters

newData

The data that is the result of the query.

error

The error that occurred while running the query. This value is a null reference (Nothing in Visual Basic) if there is no error.

completionWork

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

callbackArguments

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.

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0

Community Additions

ADD
Show: