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




Raised when the asynchronous operation started by the Imap.BeginLogin method completes.

Syntax

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

Event Data

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.

PropertyDescription
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.

Remarks

This event is raised when the asynchronous operation started by the Imap.BeginLogin method completes. An ImapResponseEventArgs object is passed into the event handler, encapsulating the response(s) from the server. If an exception occurred during the asynchronous operation, it would also be returned in the ImapResponseEventArgs object in the ImapResponseEventArgs.Exception property. If an exception is present, it will be thrown if you access any member of the ImapResponseEventArgs object.

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