| 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.| Exception | Description |
|---|---|
| Dart.PowerTCP.Mail.ProtocolException | Bad IMAP protocol response received from server. |
| System.Net.Sockets.SocketException | The requested address is not valid in its context. |
| System.InvalidOperationException | BeginXXX method used without providing an EndXXX event handler. |
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.
Target Platforms: Microsoft .NET Framework 2.0