DevForce Help Reference
ConnectAsync Method (EntityManagerAsyncExtensions)


Optional callback called when the operation completes
Optional user token identifying the operation
Connect to the IdeaBlade.EntityModel.Server.EntityServer asynchronously.
Syntax
'Declaration
 
<ExtensionAttribute()>
Public Shared Function ConnectAsync( _
   ByVal em As EntityManager, _
   ByVal userCallback As Action(Of BasicOperation), _
   Optional ByVal userState As Object _
) As BasicOperation
'Usage
 
Dim em As EntityManager
Dim userCallback As Action(Of BasicOperation)
Dim userState As Object
Dim value As BasicOperation
 
value = EntityManagerAsyncExtensions.ConnectAsync(em, userCallback, userState)

Parameters

em
userCallback
Optional callback called when the operation completes
userState
Optional user token identifying the operation
Exceptions
ExceptionDescription
IdeaBlade.EntityModel.EntityServerException Exception thrown by the EntityServer for persistence failures.
Remarks
Use ConnectAsync and Disconnect to manage the connection to the EntityServer. You should have an EntityServerError handler in place to catch connection failures.

Connect does not connect to any backend data sources.

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

EntityManagerAsyncExtensions Class
EntityManagerAsyncExtensions Members
Disconnect Method

Send Feedback