ISupportSynchronizationContext Interface

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)

Members See Also


Specifies that an object can use SynchronizationContext to customize how events and callback delegates are invoked.

Namespace: NationalInstruments

Assembly: NationalInstruments.Common (in NationalInstruments.Common.dll) Version: 13.0.40.188

Syntax

Visual Basic (Declaration)
Public Interface ISupportSynchronizationContext

C#
public interface ISupportSynchronizationContext

Remarks

Objects that implement ISupportSynchronizationContext use SynchronizeCallbacks to determine how events and callback delegates are invoked. If SynchronizeCallbacks is false (False in Visual Basic), events and callbacks are directly invoked. If SynchronizeCallbacks is true (True in Visual Basic), events and callbacks are invoked through the Send or Post methods. For example, if an object that implements ISupportSynchronizationContext raises events in a separate thread and you want to handle the events in your user interface thread, you set SynchronizeCallbacks to true (True in Visual Basic) and begin the operation in the user interface thread.

Note: For more information, refer to Events, Callbacks, and Thread Safety in Measurement Studio .NET Class Libraries.

See Also

Reference

ISupportSynchronizationContext Members

NationalInstruments Namespace

WAS THIS ARTICLE HELPFUL?

Not Helpful