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




state
User state information.
Begins to asynchronously log out and closes the connection.

Syntax

Visual Basic (Declaration) 
Public Function BeginLogout( _
   ByVal state As Object _
) As IAsyncResult
Visual Basic (Usage)Copy Code
Dim instance As Imap
Dim state As Object
Dim value As IAsyncResult
 
value = instance.BeginLogout(state)
C# 
public IAsyncResult BeginLogout( 
   object state
)
Managed Extensions for C++ 
public: IAsyncResult* BeginLogout( 
   Object* state
) 
C++/CLI 
public:
IAsyncResult^ BeginLogout( 
   Object^ state
) 

Parameters

state
User state information.

Return Value

An IAsyncResult that represents the asynchronous operation, which could still be pending.

Exceptions

ExceptionDescription
Dart.PowerTCP.Mail.ProtocolExceptionBad IMAP protocol response received from server.
System.Net.Sockets.SocketExceptionThe requested address is not valid in its context.
System.InvalidOperationExceptionBeginXXX method used without providing an EndXXX event handler.

Remarks

The Imap.BeginLogout command issues the IMAP LOGOUT command, gracefully logging out of the server and closing the connection. Upon completion of this operation, the Imap.EndLogout event is raised.

Requirements

Target Platforms: Microsoft .NET Framework 2.0

See Also

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