PowerTCP Mail for .NET
EventHandlerEx Delegate
See Also  Send comments on this topic.
Dart.PowerTCP.Mail Namespace : EventHandlerEx Delegate




sender
The source of the event.
e
An EventArgs object that contains the event data.
Replaces System.EventHandler when the SynchronizingObject property is used.

Syntax

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)
C# 
public delegate void EventHandlerEx( 
   object sender,
   EventArgs e
)
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.

Remarks

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".

Requirements

Target Platforms: Microsoft .NET Framework 2.0

See Also

Documentation Version 3.2
© 2010 Dart Communications. All Rights Reserved.