Smtp.DisconnectAsync Method
Namespace: Rebex.Net
Assembly: Rebex.Smtp.dll (version 7.0.9119)
DisconnectAsync(Object)
Begins asynchronous Disconnect operation. Informs the server that the connection is about to close and terminates the connection.
Declaration
public Task<string> DisconnectAsync(object state = null)
Parameters
Type | Name | Description |
---|---|---|
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 SMTP QUIT command.