Keysight VISA.NET Help
SynchronizeCallbacks Property (VisaSession)



Specifies whether callbacks must be performed in a specific synchronization context. If false, the implementation is allowed to execute callbacks in any context. The default value is true. This property applies to this session only (local scope).
Syntax
'Declaration
 
Public Property SynchronizeCallbacks As Boolean
'Usage
 
Dim instance As VisaSession
Dim value As Boolean
 
instance.SynchronizeCallbacks = value
 
value = instance.SynchronizeCallbacks
public bool SynchronizeCallbacks {get; set;}
public:
property bool SynchronizeCallbacks {
   bool get();
   void set (    bool value);
}
Remarks

This property applies to both I/O callbacks and events, but the point in time at which the synchronization context is captured is different. For events, context is captured at event registration, for each event type and delegate, regardless of the current state of this property. When an event is raised, the implementation uses this property to determine the context in which to invoke the delegate. For asynchronous I/O, context is captured at the begin operation (e.g. BeginRead, BeginWrite) if this property is true.

The default value is true.

Requirements

Current with Keysight IO Libraries Suite 18

See Also

 

 


© Keysight Technologies 2015-2025