DevForce Help Reference
SafeThreadingCheck Property


Delegate to a method called by the EntityManager to determine if an operation can safely be performed on the current thread.
Syntax
'Declaration
 
Public Property SafeThreadingCheck As Action(Of EntityManager)
'Usage
 
Dim instance As EntityManager
Dim value As Action(Of EntityManager)
 
instance.SafeThreadingCheck = value
 
value = instance.SafeThreadingCheck
public Action<EntityManager> SafeThreadingCheck {get; set;}
Remarks
The default logic checks that the current thread id is the AuthorizedThreadId and throws an InvalidOperationException if not. You can override this default by setting this property to a method performing your custom logic. Your method should throw an exception if the threading check fails.

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

EntityManager Class
EntityManager Members

Send Feedback