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




state
User state information.
Begins to asynchronously send a NOOP command to keep the user logged in and to poll for changes.

Syntax

Visual Basic (Declaration) 
Public Function BeginNoop( _
   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.BeginNoop(state)
C# 
public IAsyncResult BeginNoop( 
   object state
)
Managed Extensions for C++ 
public: IAsyncResult* BeginNoop( 
   Object* state
) 
C++/CLI 
public:
IAsyncResult^ BeginNoop( 
   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.BeginNoop command begins to asynchronously send an IMAP NOOP command. Upon completion of this operation the Imap.EndNoop event is raised. The IMAP NOOP command enables the user to keep the connection with the server alive as well as poll for changes in the current mailbox with minimum impact on the server.

The IMAP IDLE command was implemented to provide a better way for the client to be notified of changes to the mailbox. See the Imap.Idle for a description of using this command.

Requirements

Target Platforms: Microsoft .NET Framework 2.0

See Also

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