| Visual Basic (Declaration) | |
|---|---|
<DescriptionAttribute("Raised when the value of the Connected property changes.")> <CategoryAttribute("Progress")> Public Event ConnectedChangedEx As EventHandlerEx | |
| Visual Basic (Usage) | Copy Code |
|---|---|
Dim instance As Imap Dim handler As EventHandlerEx AddHandler instance.ConnectedChangedEx, handler | |
| C# | |
|---|---|
[DescriptionAttribute("Raised when the value of the Connected property changes.")] [CategoryAttribute("Progress")] public event EventHandlerEx ConnectedChangedEx | |
| Managed Extensions for C++ | |
|---|---|
[DescriptionAttribute("Raised when the value of the Connected property changes.")] [CategoryAttribute("Progress")] public: __event EventHandlerEx* ConnectedChangedEx | |
| C++/CLI | |
|---|---|
[DescriptionAttribute("Raised when the value of the Connected property changes.")] [CategoryAttribute("Progress")] public: event EventHandlerEx^ ConnectedChangedEx | |
This event is raised when the value of the Object.Connected property changes. The value of the Object.Connected property changes whenever a TCP connection to a resource is either made or closed.
This event is useful in several scenarios, for example:
- Displaying the user when a connection has been terminated.
- Notifying the application if a connection has been terminated.
If you are using the PowerTCP component as a reference, you must create a method to handle the event yourself. For more information on using events using PowerTCP.NET within the Visual Studio.NET environment, see Using Events In PowerTCP.
Target Platforms: Microsoft .NET Framework 2.0