| Visual Basic (Declaration) | |
|---|---|
Public Delegate Sub DataEventHandler( _ ByVal sender As Object, _ ByVal e As DataEventArgs _ )  | |
| Visual Basic (Usage) |  Copy Code | 
|---|---|
Dim instance As New DataEventHandler(AddressOf HandlerMethod)  | |
| C# | |
|---|---|
public delegate void DataEventHandler( object sender, DataEventArgs e )  | |
| Managed Extensions for C++ | |
|---|---|
public: __gc __delegate void DataEventHandler( Object* sender, DataEventArgs* e )  | |
| C++/CLI | |
|---|---|
public delegate void DataEventHandler( Object^ sender, DataEventArgs^ e )  | |
Parameters
- sender
 - The source of the event.
 - e
 - A DataEventArgs that contains buffered data.
 
Target Platforms: Microsoft .NET Framework 2.0