| Visual Basic (Declaration) | |
|---|---|
Public Delegate Sub EventHandlerEx( _ ByVal sender As Object, _ ByVal e As EventArgs _ ) | |
| Visual Basic (Usage) | Copy Code |
|---|---|
Dim instance As New EventHandlerEx(AddressOf HandlerMethod) | |
| Managed Extensions for C++ | |
|---|---|
public: __gc __delegate void EventHandlerEx( Object* sender, EventArgs* e ) | |
| C++/CLI | |
|---|---|
public delegate void EventHandlerEx( Object^ sender, EventArgs^ e ) | |
Parameters
- sender
- The source of the event.
- e
- An EventArgs object that contains the event data.
When the SynchronizingObject is used, the ConnectedChanged event handler reports the SynchronizingObject as "sender". The EventHandlerEx is used to force the SynchronizingObject to correctly report the appropriate Tcp object as "sender".
Target Platforms: Microsoft .NET Framework 2.0