共用方式為


ClientRuntimeContext.ExecuteQuery Method

Executes the current set of data retrieval queries and method invocations.

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

Syntax

'Declaration
Public Overridable Sub ExecuteQuery
'Usage
Dim instance As ClientRuntimeContext

instance.ExecuteQuery()
public virtual void ExecuteQuery()

Remarks

This virtual method is “synchronous”, which means that code execution is blocked until a response is received from the server. If the caller does not want to be blocked and the caller is managed, the caller should evoke the ExecuteQueryAsync() method.

See Also

Reference

ClientRuntimeContext Class

ClientRuntimeContext Members

Microsoft.SharePoint.Client Namespace