Pop3.DisconnectAsync Method
Namespace: Rebex.Net
Assembly: Rebex.Pop3.dll (version 7.0.9119)
DisconnectAsync(Boolean, Object)
Begins asynchronous Disconnect operation. Deletes any messages marked as deleted and terminate the connection.
Declaration
public Task<string> DisconnectAsync(bool rollbackChanges, object state = null)
Parameters
Type | Name | Description |
---|---|---|
Boolean | rollbackChanges | True if messages marked as deleted 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.