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




Raised when the asynchronous operation started by the ImapMessage.BeginGetPart method completes.

Syntax

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

Event Data

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

PropertyDescription
Exception (Inherited from Dart.PowerTCP.Mail.EndEventArgs) Gets any exception which occurred during the asynchronous operation.
Message Gets the ImapMessage that contains the part.
Part Gets the part retrieved.
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 ImapMessage.BeginGetPart method completes. A MessagePartEventArgs object is passed into the event handler, containing a Stream object filled with the data for the retrieved part (accessible via the MessagePartEventArgs.Part property). If an exception occurred during the asynchronous operation, it would also be returned in the MessagePartEventArgs object in the MessagePartEventArgs.Exception property. If an exception is present, it will be thrown if you access any member of the MessagePartEventArgs object.

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