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

2/27/2008

Defines the method that handles the DeviceChangedEventArgs event.

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

Syntax

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

Parameters

  • sender
    The source of the event.

Remarks

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

When you create a DeviceChangedEventHandler 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