Share via


PosExplorer.SynchronizingObject Property (POS for .NET v1.12 SDK Documentation)

2/27/2008

Gets or sets the IsynchronizeInvoke object.

Namespace: Microsoft.PointOfService
Assembly: Microsoft.PointOfService (in microsoft.pointofservice.dll)

Syntax

'Declaration
Public Property SynchronizingObject As ISynchronizeInvoke
public ISynchronizeInvoke SynchronizingObject { get; set; }
public:
property ISynchronizeInvoke^ SynchronizingObject {
    ISynchronizeInvoke^ get ();
    void set (ISynchronizeInvoke^ value);
}
/** @property */
public ISynchronizeInvoke get_SynchronizingObject ()

/** @property */
public void set_SynchronizingObject (ISynchronizeInvoke value)
public function get SynchronizingObject () : ISynchronizeInvoke

public function set SynchronizingObject (value : ISynchronizeInvoke)

Remarks

Contains an object which is an instance of the .NET Framework class IsynchronizeInvoke. IsynchronizeInvoke is used to marshal events to a particular thread. If SynchronizingObject is set to null, events are raised on a system pool thread. Setting this property overrides the synchronizingObject parameter that is passed in the constructor.

When the events are handled by a visual Windows Forms control, such as a button, accessing the component through the system thread pool might not work, or might result in an exception. Avoid this by setting the SynchronizingObject property to a Windows Forms component that causes the methods handling the event to be called on the same thread on which the component was created.

For more information, see the .NET Framework Library documentation.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread-safe. Any instance members are not guaranteed to be thread-safe.

See Also

Reference

PosExplorer Class
PosExplorer Members
Microsoft.PointOfService Namespace