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)
Syntax
'Declaration
Public Overridable Sub ExecuteQueryAsync ( _
succeededCallback As ClientRequestSucceededEventHandler, _
failedCallback As ClientRequestFailedEventHandler _
)
'Usage
Dim instance As ClientRuntimeContext
Dim succeededCallback As ClientRequestSucceededEventHandler
Dim failedCallback As ClientRequestFailedEventHandler
instance.ExecuteQueryAsync(succeededCallback, _
failedCallback)
public virtual void ExecuteQueryAsync(
ClientRequestSucceededEventHandler succeededCallback,
ClientRequestFailedEventHandler failedCallback
)
Parameters
succeededCallback
Type: Microsoft.SharePoint.Client.ClientRequestSucceededEventHandlerThe ClientRequestSucceededEventHandler object that represents the delegate of the method that is called when the request is executed successfully.
failedCallback
Type: Microsoft.SharePoint.Client.ClientRequestFailedEventHandlerThe ClientRequestSucceededEventHandler object that represents the delegate of the method that is called when the request is executed unsuccessfully.
Remarks
This virtual method is “asynchronous”, which means that the code will continue to be executed without waiting for the server to respond.