ArcFM Engine Developer Guide
ControlSafeInvoke Method


A multicast delegate (note: C# delegates are type System.MulticastDelegate).
The delegate arguments
Invokes an event or delegate while taking into consideration the fact that controls are not thread-safe.
Syntax
'Declaration
 
Public Shared Function ControlSafeInvoke( _
   ByVal multicast As MulticastDelegate, _
   ByVal ParamArray args() As Object _
) As Object
'Usage
 
Dim multicast As MulticastDelegate
Dim args() As Object
Dim value As Object
 
value = ArcMapUtilities.ControlSafeInvoke(multicast, args)
public static object ControlSafeInvoke( 
   MulticastDelegate multicast,
   params object[] args
)

Parameters

multicast
A multicast delegate (note: C# delegates are type System.MulticastDelegate).
args
The delegate arguments
Remarks
The only thread that may safely call a method on a control is the thread that created the control. Any other thread must marshal the call to the control's creating thread. This is done by calling the controls Invoke method. If the delegate is invoked from the control's thread then the delegate can be called directly; this is determined by checking the control's InvokeRequired property. %%
Requirements

Target Platforms: Windows XP SP3 (32-bit and 64-bit), Windows 7 (32-bit and 64-bit)

Not all Operating Systems are supported on all products. Visit the ArcFM Solution Supported Versions page for full details.

See Also

Reference

ArcMapUtilities Class
ArcMapUtilities Members

 

 


Send Comment