SynchronizeCallbacks Property

NI-VisaNS .NET Class Library Help for Visual Studio 2010

Edition Date: August 2012

Part Number: 370627F-01

»View Product Info
Download Help (Windows Only)

Session Class See Also


Specifies how events and callback delegates are invoked.

Namespace: NationalInstruments.VisaNS

Assembly: NationalInstruments.VisaNS (in NationalInstruments.VisaNS.dll) Version: 13.0.40.167

Syntax

Visual Basic (Declaration)
Public Property SynchronizeCallbacks As Boolean

C#
public bool SynchronizeCallbacks { get; set; }

Property Value

true (True in Visual Basic) if events and callbacks are invoked via Send or Post. Otherwise, events and callbacks are invoked directly. The default value is true (True in Visual Basic).

Implements

ISupportSynchronizationContext.SynchronizeCallbacks

Remarks

In some cases, callbacks and event handlers are executed in a different thread than the rest of the program. Therefore, you must take special care when accessing objects that have thread affinity, such as UI controls, from these callbacks and event handlers. For more information, refer to Events, Callbacks, and Thread Safety in Measurement Studio .NET Class Libraries.

See Also

Reference

Session Class

NationalInstruments.VisaNS Namespace

Other Resources

WAS THIS ARTICLE HELPFUL?

Not Helpful