Share via


DirectIOEventHandler Delegate

Represents the method that will handle a DirectIOEvent.

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

Usage

'Usage
Sub Sub1(sender As Object, _
    e As DirectIOEventArgs)
End Sub
Dim directIOEventHandler1 As New DirectIOEventHandler(AddressOf Sub1)

Syntax

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

Remarks

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

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