Export (0) Print
Expand All

DomainContext.Load Method (EntityQuery, LoadBehavior, Action<LoadOperation>, Object)

WCF RIA Services

[WCF RIA Services Version 1 Service Pack 2 is compatible with either .NET framework 4 or .NET Framework 4.5, and with either Silverlight 4 or Silverlight 5.]

Initiates a load operation for the specified query with the specified load behavior, callback method, and user state.

Namespace:  System.ServiceModel.DomainServices.Client
Assembly:  System.ServiceModel.DomainServices.Client (in System.ServiceModel.DomainServices.Client.dll)

public virtual LoadOperation Load(
	EntityQuery query,
	LoadBehavior loadBehavior,
	Action<LoadOperation> callback,
	Object userState
)

Parameters

query
Type: System.ServiceModel.DomainServices.Client.EntityQuery
The query to invoke.
loadBehavior
Type: System.ServiceModel.DomainServices.Client.LoadBehavior
The LoadBehavior to apply.
callback
Type: System.Action<LoadOperation>
Optional callback to be called when the load operation completes. The callback must be a delegate taking a single parameter that can accept an instance of the LoadOperation Type returned.
userState
Type: System.Object
Optional user state.

Return Value

Type: System.ServiceModel.DomainServices.Client.LoadOperation
The load operation.

ExceptionCondition
[ArgumentNullException]

query is null.

[InvalidOperationException]

The query was not created by this domain context.

Show:
© 2014 Microsoft