Share via


PosCommon.SynchronizingObject Property

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

Usage

'Usage
Dim posCommon1 As PosCommon

Dim returnValue As ISynchronizeInvoke
returnValue = posCommon1.SynchronizingObject

Dim sampleValue As ISynchronizeInvoke
posCommon1.SynchronizingObject = sampleValue

Syntax

'Declaration
Public Property SynchronizingObject() As ISynchronizeInvoke
public ISynchronizeInvoke SynchronizingObject {get; set;}
public: property ISynchronizeInvoke^ SynchronizingObject{
    ISynchronizeInvoke^ get();
    Void set(ISynchronizeInvoke^);
}
public ISynchronizeInvoke get_SynchronizingObject();
public void set_SynchronizingObject(ISynchronizeInvoke);
public function get SynchronizingObject() : ISynchronizeInvoke;
public function set SynchronizingObject(ISynchronizeInvoke);

Remarks

Contains an instance of the ISynchronizeInvoke class for marshalling POS events to a specific thread. Applications using Windows Forms should set SynchronizationObject to an ISynchronizeInvoke class instance, as required by the Forms Library.

The PosExplorer class initializes SynchronizingObject to the value of its SynchronizingObject property. This allows applications to set the SynchronizingObject property on the PosExplorer class and ensure that all service objects created by that instance of PosExplorer will deliver events on the same thread. If SynchronizingObject is set to null, events will be delivered on a thread owned by the service object.

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.

Platforms

Development Platforms

Windows XP Home Edition, Windows XP Professional, Windows Server 2003, Windows Longhorn, and Windows 2000

Target Platforms

See Also

Reference

PosCommon Class
PosCommon Members
Microsoft.PointOfService Namespace
.NET Framework IsynchronizeInvoke
PosExplorer