ClientRuntimeContext.ExecuteQueryAsync Method (ClientRequestSucceededEventHandler, ClientRequestFailedEventHandler)

Executes the current pending request asynchronously on the server.

Namespace:  Microsoft.SharePoint.Client
Assembly:  Microsoft.SharePoint.Client.Silverlight.Runtime (in Microsoft.SharePoint.Client.Silverlight.Runtime.dll)

public virtual void ExecuteQueryAsync(
	ClientRequestSucceededEventHandler succeededCallback,
	ClientRequestFailedEventHandler failedCallback
)

Parameters

succeededCallback
Type: Microsoft.SharePoint.Client.ClientRequestSucceededEventHandler

The ClientRequestSucceededEventHandler object that represents the delegate of the method that is called when the request is executed successfully.

failedCallback
Type: Microsoft.SharePoint.Client.ClientRequestFailedEventHandler

The ClientRequestSucceededEventHandler object that represents the delegate of the method that is called when the request is executed unsuccessfully.

This virtual method is “asynchronous”, which means that the code will continue to be executed without waiting for the server to respond.

Show:
© 2014 Microsoft