DeviceErrorEventHandler Delegate

Represents the method that will handle ErrorEvent events.

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

Usage

'Usage
Sub Sub1(sender As Object, _
    e As DeviceErrorEventArgs)
End Sub
Dim deviceErrorEventHandler1 As New DeviceErrorEventHandler(AddressOf Sub1)

Syntax

'Declaration
Public Delegate Sub DeviceErrorEventHandler( _
    ByVal sender As Object, _
    ByVal e As DeviceErrorEventArgs _
)
public delegate void DeviceErrorEventHandler(
    object sender,
    DeviceErrorEventArgs e
);
public delegate Void DeviceErrorEventHandler(
    Object^ sender,
    DeviceErrorEventArgs^ e
);
public delegate void DeviceErrorEventHandler(
    System.Object sender,
    DeviceErrorEventArgs e
);
In JScript, you can use the delegates in the .NET Framework, but you cannot define your own.

Parameters

  • sender
    The source of the event.
  • e
    A DeviceErrorEventArgs that contains the event data.

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 will handle 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.

Platforms

Development Platforms

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

Target Platforms

See Also

Reference

Microsoft.PointOfService Namespace