Pop3Client.DeleteMessagesAsync

DeleteMessagesAsync(IConnection)

Deletes all messages

public Task DeleteMessagesAsync(IConnection connection)
ParameterTypeDescription
connectionIConnectionConnection to a server

Return Value

Task object, with delegate for this operation

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


DeleteMessagesAsync()

Deletes all messages

public Task DeleteMessagesAsync()

Return Value

Task object, with delegate for this operation

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


DeleteMessagesAsync(IConnection, CancellationToken)

Deletes all messages

public Task DeleteMessagesAsync(IConnection connection, CancellationToken token)
ParameterTypeDescription
connectionIConnectionConnection to a server
tokenCancellationTokenPropagates notification that operations should be canceled.

Return Value

Task object, with delegate for this operation

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


DeleteMessagesAsync(CancellationToken)

Deletes all messages

public Task DeleteMessagesAsync(CancellationToken token)
ParameterTypeDescription
tokenCancellationTokenPropagates notification that operations should be canceled.

Return Value

Task object, with delegate for this operation

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