Share via


DataEventHandler Delegate

Represents the method that will handle the DataEvent.

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

Usage

'Usage
Sub Sub1(sender As Object, _
    e As DataEventArgs)
End Sub
Dim dataEventHandler1 As New DataEventHandler(AddressOf Sub1)

Syntax

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

Remarks

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

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