Rebex
Products Downloads Buy Support Contact
Show / Hide Table of Contents

Pop3.DisconnectAsync Method

Namespace: Rebex.Net
Assembly: Rebex.Pop3.dll (version 7.0.9448)

DisconnectAsync(Boolean, Object)

Begins asynchronous Disconnect operation. Terminates the connection after either rolling back deletions or deleting messages marked for deletion.

Declaration
public Task<string> DisconnectAsync(bool rollbackChanges, object state = null)
Parameters
Type Name Description
Boolean rollbackChanges

True if messages marked for deletion should be left on the server.

Object state

An optional user-provided object that identifies this particular asynchronous operation.

Returns
Type Description
Task<String>

The exit message returned by the server.

Remarks

Represents POP3 QUIT command, with optional preceding RSET.

If the connection has already been closed, the method will fail if any messages were marked for deletion and rollback was not requested.

In This Article
© REBEX ČR s.r.o. Back to top
Privacy policy
Manage cookies