Share via


PosCommon.StatusUpdateEvent Event

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

Usage

'Usage
WithEvents posCommon1 As PosCommon
Function posCommon1_StatusUpdateEvent(sender As Object, _
    e As StatusUpdateEventArgs) As Void
    Handles posCommon1.StatusUpdateEvent
End Function

Syntax

'Declaration
Public MustOverride Event StatusUpdateEvent As StatusUpdateEventHandler
public abstract event StatusUpdateEventHandler StatusUpdateEvent;
public: abstract event StatusUpdateEventHandler^ StatusUpdateEvent;
public abstract  void add_StatusUpdateEvent(StatusUpdateEventHandler handler);
public abstract  void remove_StatusUpdateEvent(StatusUpdateEventHandler handler);
In JScript, you can handle the events defined by a class, but you cannot define your own.

Remarks

Fired when POS for .NET or the service object needs to alert the application of a device status change.

Examples are a change in the cash drawer position (open vs. closed), a change in a POS printer sensor (form present vs. absent), or a change in the power state of the device.

When a device is enabled, the service object may fire initial StatusUpdateEvents to inform the application of the device state. This behavior, however, is not required.

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
StatusUpdateEventArgs