PowerTCP Mail for .NET
EndMailboxAdd Event
See Also  Send comments on this topic.
Dart.PowerTCP.Mail Namespace > Imap Class : EndMailboxAdd Event




Raised when the asynchronous operation started by the MailboxCollection.BeginAdd method completes.

Syntax

Visual Basic (Declaration) 
<CategoryAttribute("Completion")>
Public Event EndMailboxAdd As MailboxEventHandler
Visual Basic (Usage)Copy Code
Dim instance As Imap
Dim handler As MailboxEventHandler
 
AddHandler instance.EndMailboxAdd, handler
C# 
[CategoryAttribute("Completion")]
public event MailboxEventHandler EndMailboxAdd
Managed Extensions for C++ 
[CategoryAttribute("Completion")]
public: __event MailboxEventHandler* EndMailboxAdd
C++/CLI 
[CategoryAttribute("Completion")]
public:
event MailboxEventHandler^ EndMailboxAdd

Event Data

The event handler receives an argument of type MailboxEventArgs containing data related to this event. The following MailboxEventArgs properties provide information specific to this event.

PropertyDescription
Exception (Inherited from Dart.PowerTCP.Mail.EndEventArgs) Gets any exception which occurred during the asynchronous operation.
Mailbox Gets the Mailbox object representing the IMAP mailbox for which the event was raised.
Mailboxes Gets an array of Mailbox objects representing all mailboxes effected by the operation.
State (Inherited from Dart.PowerTCP.Mail.EndEventArgs) Gets the object that was included as part of the associated method call.

Remarks

This event is raised when the asynchronous operation started by the MailboxCollection.BeginAdd method completes. A MailboxEventArgs object is passed into the event handler, encapsulating the Mailbox objects affected by the operation. If an exception occurred during the asynchronous operation, it would also be returned in the MailboxEventArgs object in the MailboxEventArgs.Exception property. If an exception is present, it will be thrown if you access any member of the MailboxEventArgs object.

This event MUST be implemented if you are using the MailboxCollection.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.

Requirements

Target Platforms: Microsoft .NET Framework 2.0

See Also

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