Share via

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

[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 callback method, and user state.

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


Public Function Load(Of TEntity As Entity) ( _
    query As EntityQuery(Of TEntity), _
    callback As Action(Of LoadOperation(Of TEntity)), _
    userState As Object _
) As LoadOperation(Of TEntity)
Dim instance As DomainContext
Dim query As EntityQuery(Of TEntity)
Dim callback As Action(Of LoadOperation(Of TEntity))
Dim userState As Object
Dim returnValue As LoadOperation(Of TEntity)

returnValue = instance.Load(query, callback, _
public LoadOperation<TEntity> Load<TEntity>(
    EntityQuery<TEntity> query,
    Action<LoadOperation<TEntity>> callback,
    Object userState
where TEntity : Entity
generic<typename TEntity>
where TEntity : Entity
LoadOperation<TEntity>^ Load(
    EntityQuery<TEntity>^ query, 
    Action<LoadOperation<TEntity>^>^ callback, 
    Object^ userState
member Load : 
        query:EntityQuery<'TEntity> * 
        callback:Action<LoadOperation<'TEntity>> * 
        userState:Object -> LoadOperation<'TEntity>  when 'TEntity : Entity
JScript does not support generic types and methods.

Type Parameters

  • TEntity
    The entity type being loaded.


Return Value

Type: System.ServiceModel.DomainServices.Client.LoadOperation<TEntity>
The load operation.

See Also


DomainContext Class

Load Overload

System.ServiceModel.DomainServices.Client Namespace