DeviceChangedEventHandler Delegate

Represents the method that will handle the DeviceChangedEvent.

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

Usage

'Usage
Sub Sub1(sender As Object, _
    e As DeviceChangedEventArgs)
End Sub
Dim deviceChangedEventHandler1 As New DeviceChangedEventHandler(AddressOf Sub1)

Syntax

'Declaration
Public Delegate Sub DeviceChangedEventHandler( _
    ByVal sender As Object, _
    ByVal e As DeviceChangedEventArgs _
)
public delegate void DeviceChangedEventHandler(
    object sender,
    DeviceChangedEventArgs e
);
public delegate Void DeviceChangedEventHandler(
    Object^ sender,
    DeviceChangedEventArgs^ e
);
public delegate void DeviceChangedEventHandler(
    System.Object sender,
    DeviceChangedEventArgs 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 DeviceChangedEventArgs that contains the event data.

Remarks

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

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