Gets or sets how events and callback delegates are invoked. For more information, read the Events, Callbacks, and Thread Safety in Measurement Studio .NET Class Libraries concept topic.

Syntax

Namespace: NationalInstruments.ModularInstruments.NISwitch

public bool SynchronizeCallbacks { get; set; }

Returns

true if events and callbacks are invoked through the System.Threading.SynchronizationContext.Send or System.Threading.SynchronizationContext.Post methods; otherwise, events and callbacks are invoked directly. The default value is true.

Exceptions

TypeDescription
System.ObjectDisposedException

The SynchronizeCallbacks property was accessed after the associated NISwitch object was disposed.