SynchronizingObject 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


NOTE: This property is obsolete.

Gets or sets the object that marshals event-handler and callback calls.

Namespace: NationalInstruments.VisaNS

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

Syntax

Visual Basic (Declaration)
<ObsoleteAttribute("Use SynchronizeCallbacks to specify that the object marshals callbacks across threads appropriately.")> _
<BrowsableAttribute(False)> _
Public Property SynchronizingObject As ISynchronizeInvoke

C#
[ObsoleteAttribute("Use SynchronizeCallbacks to specify that the object marshals callbacks across threads appropriately.")]
[BrowsableAttribute(false)]
public ISynchronizeInvoke SynchronizingObject { get; set; }

Property Value

The ISynchronizeInvoke representing the object that marshals the event-handler and callback calls. The default value is null (Nothing in Visual Basic).

Implements

ISynchronizeCallbacks.SynchronizingObject

Remarks

When the value of this property is null (Nothing in Visual Basic), event-handler and callback calls are raised in the default manner. This behavior could mean that the calls happen from a thread other than the main thread. Avoid this behavior by setting this property to an object that implements ISynchronizeInvoke, such as a Control.
Note: 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