Share via


PosEventArgs.EventId Property

Gets the event identifier.

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

Usage

'Usage
Dim posEventArgs1 As PosEventArgs

Dim returnValue As Integer
returnValue = posEventArgs1.EventId

Syntax

'Declaration
Public ReadOnly Property EventId() As Integer
public int EventId {get;}
public: property Int32 EventId{
    Int32 get();
}
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 EventId.

EventId 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 DataEventEnabled 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.

Platforms

Development Platforms

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

Target Platforms

See Also

Reference

PosEventArgs Class
PosEventArgs Members
Microsoft.PointOfService Namespace