| Visual Basic (Declaration) | |
|---|---|
<CategoryAttribute("Progress")> Public Event Update As ImapResponseEventHandler | |
| Visual Basic (Usage) | Copy Code |
|---|---|
Dim instance As Imap Dim handler As ImapResponseEventHandler AddHandler instance.Update, handler | |
| C# | |
|---|---|
[CategoryAttribute("Progress")] public event ImapResponseEventHandler Update | |
| Managed Extensions for C++ | |
|---|---|
[CategoryAttribute("Progress")] public: __event ImapResponseEventHandler* Update | |
| C++/CLI | |
|---|---|
[CategoryAttribute("Progress")] public: event ImapResponseEventHandler^ Update | |
The event handler receives an argument of type ImapResponseEventArgs containing data related to this event. The following ImapResponseEventArgs properties provide information specific to this event.
| Property | Description |
|---|---|
| Exception (Inherited from Dart.PowerTCP.Mail.EndEventArgs) | Gets any exception which occurred during the asynchronous operation. |
| Response | Gets an ImapResponse object representing a single line response from the IMAP server. |
| Responses | Gets an array of ImapResponse objects representing all responses from the IMAP server applicable to this event. |
| State (Inherited from Dart.PowerTCP.Mail.EndEventArgs) | Gets the object that was included as part of the associated method call. |
The Imap.Update event is raised when an update is received from the server. This can happen at any time, but there are two scenarios where this is most likely to occur. The first is when the Imap component is in IDLE mode and received an update from the server. See the Imap.Idle property for more information about using IDLE mode. The second is when an update is received as response to a NOOP command. See the Imap.Noop or Imap.BeginNoop method for more info.
When this event is raised, an ImapResponseEventArgs object which encapsulates the update received is passed into the event handler.
For more information on using PowerTCP events, see the topic Using Events In PowerTCP.
Target Platforms: Microsoft .NET Framework 2.0