Share via


PosEventArgs.EventId Property

2/27/2008

Gets the event identifier.

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

Syntax

'Declaration
Public ReadOnly Property EventId As Integer
public int EventId { get; }
public:
property int EventId {
    int get ();
}
/** @property */
public int get_EventId ()
public function get EventId () : int

Remarks

Because DateTime.Now has limited resolution, it is possible that two events can be given the same TimeStamp. Therefore, you should also verify the order of events with the EventId property.

The EventId property is an integer that is incremented after every event. The first event is number 1, the second event is number 2, and so on. The numbering is honored across service objects in the same process. This enables an application working with multiple devices to determine event order regardless of which device it came from.

EventId is set at the time the event is created. Therefore, an application is not guaranteed to receive events with sequential EventIds. For example, StatusUpdateEvent events are delivered before DataEvent events if the DataEventEnabled property is set to false.

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

PosEventArgs Class
PosEventArgs Members
Microsoft.PointOfService Namespace