ISynchronizeCallbacks 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 an ISynchronizeInvoke implementation 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 ISynchronizeCallbacks

C#
public interface ISynchronizeCallbacks

Remarks

Objects that implement ISynchronizeCallbacks use the value of the SynchronizingObject property to determine how events and callback delegates are invoked. If the value of the SynchronizingObject property is null (Nothing in Visual Basic), events and callbacks are directly invoked. If the value of the SynchronizingObject property is not null (Nothing in Visual Basic), events and callbacks are invoked through the Invoke method of the specified ISynchronizeInvoke implementation. For example, if an object that implements ISynchronizeCallbacks raises events in a separate thread and you want to handle the events in your user interface thread, you set the SynchronizingObject property to an instance of a Windows Forms form.

Note: ISynchronizeCallbacks has been superseded by ISupportSynchronizationContext in .NET Framework 2.0. For more information, refer to Events, Callbacks, and Thread Safety in Measurement Studio .NET Class Libraries.

See Also

Reference

ISynchronizeCallbacks Members

NationalInstruments Namespace

WAS THIS ARTICLE HELPFUL?

Not Helpful