Visual Basic (Declaration) | |
---|---|
<ExtensionAttribute()> Public Overloads Shared Function ExecuteAsync( _ ByVal query As IEntityQuery, _ ByVal userCallback As Action(Of EntityQueryOperation), _ Optional ByVal userState As Object _ ) As EntityQueryOperation |
Visual Basic (Usage) | ![]() |
---|---|
Dim query As IEntityQuery Dim userCallback As Action(Of EntityQueryOperation) Dim userState As Object Dim value As EntityQueryOperation value = EntityQueryExtensions.ExecuteAsync(query, userCallback, userState) |
C# | |
---|---|
[ExtensionAttribute()] public static EntityQueryOperation ExecuteAsync( IEntityQuery query, Action<EntityQueryOperation> userCallback, object userState ) |
C++/CLI | |
---|---|
[ExtensionAttribute()] public: static EntityQueryOperation^ ExecuteAsync( IEntityQuery^ query, Action<EntityQueryOperation^>^ userCallback, Object^ userState ) |
Parameters
- query
- This query
- userCallback
- Callback invoked when the query completes
- userState
- Token to identify the query upon completion
C# | ![]() |
---|---|
DomainModelEntityManager mgr = new DomainModelEntityManager(); var query = mgr.Customers.Where(c => c.Country == "UK"); query.ExecuteAsync(op => { var customers = op.Results; }); |
Provide a userCallback if you want to be notified when the operation completes. The query results will be returned in the EntityQueriedEventArgs passed to the userCallback. Use the userState to uniquely identify this call.
Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family
Reference
EntityQueryExtensions ClassEntityQueryExtensions Members
Overload List
IdeaBlade.EntityModel.EntityManager.ExecuteQueryAsync(IEntityQuery)