Share via


DeviceErrorEventHandler Delegate (POS for .NET v1.12 SDK Documentation)

2/27/2008

Defines the method that handles DeviceErrorEventArgs events.

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

Syntax

'Declaration
Public Delegate Sub DeviceErrorEventHandler ( _
    sender As Object, _
    e As DeviceErrorEventArgs _
)
public delegate void DeviceErrorEventHandler (
    Object sender,
    DeviceErrorEventArgs e
)
public delegate void DeviceErrorEventHandler (
    Object^ sender, 
    DeviceErrorEventArgs^ e
)
/** @delegate */
public delegate void DeviceErrorEventHandler (
    Object sender, 
    DeviceErrorEventArgs e
)

Parameters

  • sender
    The source of the event.

Remarks

The declaration of your event handler must have the same parameters as the DeviceErrorEventHandler delegate declaration.

When you create a DeviceErrorEventHandler delegate, you identify the method that handles the event. To associate the event with your event handler, add an instance of the delegate to the event. The event handler is called whenever the event occurs, unless you remove the delegate.

See Also

Reference

Microsoft.PointOfService Namespace