IAsyncPop3Client.DeleteMessageAsync

DeleteMessageAsync(int, IConnection, CancellationToken)

Deletes the message

public Task DeleteMessageAsync(int sequenceNumber, IConnection connection = null, 
    CancellationToken token = default)
ParameterTypeDescription
connectionInt32Connection to a server
sequenceNumberIConnectionThe sequence number of the message
tokenCancellationTokenPropagates notification that operations should be canceled.

Remarks

The POP3 server marks the message as deleted. The POP3 server does not actually delete the message until the POP3 session enters the UPDATE state.

See Also


DeleteMessageAsync(string, IConnection, CancellationToken)

Deletes the message

public Task DeleteMessageAsync(string uniqueId, IConnection connection = null, 
    CancellationToken token = default)
ParameterTypeDescription
connectionStringConnection to a server
uniqueIdIConnectionThe unique id of the message
tokenCancellationTokenPropagates notification that operations should be canceled.

Remarks

The POP3 server marks the message as deleted. The POP3 server does not actually delete the message until the POP3 session enters the UPDATE state.

See Also