| 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 | |
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.
| Property | Description |
|---|---|
| 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. |
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.
Target Platforms: Microsoft .NET Framework 2.0