| Visual Basic (Declaration) | |
|---|---|
<CategoryAttribute("Completion")> Public Event EndMessageAdd As ImapMessageEventHandler | |
| Visual Basic (Usage) | Copy Code |
|---|---|
Dim instance As Imap Dim handler As ImapMessageEventHandler AddHandler instance.EndMessageAdd, handler | |
| C# | |
|---|---|
[CategoryAttribute("Completion")] public event ImapMessageEventHandler EndMessageAdd | |
| Managed Extensions for C++ | |
|---|---|
[CategoryAttribute("Completion")] public: __event ImapMessageEventHandler* EndMessageAdd | |
| C++/CLI | |
|---|---|
[CategoryAttribute("Completion")] public: event ImapMessageEventHandler^ EndMessageAdd | |
The event handler receives an argument of type ImapMessageEventArgs containing data related to this event. The following ImapMessageEventArgs 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. |
| Message | Gets an ImapMessage object representing the message for which the event was raised. |
| Messages | Gets an array of ImapMessage objects representing all messages effected by the asynchronous method. |
| State (Inherited from Dart.PowerTCP.Mail.EndEventArgs) | Gets the object that was included as part of the associated method call. |
This event is raised when the asynchronous operation started by the ImapMessageCollection.BeginAdd method completes. An ImapMessageEventArgs object is passed into the event handler, encapsulating the ImapMessage objects affected by this operation. If an exception occurred during the asynchronous operation, it would also be returned in the ImapMessageEventArgs object in the ImapMessageEventArgs.Exception property. If an exception is present, it will be thrown if you access any member of the ImapMessageEventArgs object.
This event MUST be implemented if you are using the ImapMessageCollection.BeginAdd method. See the topic Using EndXXX Events for more information.
For more information on using PowerTCP events, see the topic Using Events In PowerTCP.
Target Platforms: Microsoft .NET Framework 2.0