ImapClient.DeleteMessageAsync

DeleteMessageAsync(IConnection, int)

Marks a message with the specified sequence number as deleted

public Task DeleteMessageAsync(IConnection connection, int sequenceNumber)
ParameterTypeDescription
connectionIConnectionConnection to a server
sequenceNumberInt32Sequence number of a message

Return Value

Task object, with delegate for this operation

See Also


DeleteMessageAsync(IConnection, string)

Marks a message with the specified sequence number as deleted

public Task DeleteMessageAsync(IConnection connection, string uniqueId)
ParameterTypeDescription
connectionIConnectionConnection to a server
uniqueIdStringThe uid of the message

Return Value

Task object, with delegate for this operation

See Also


DeleteMessageAsync(int)

Marks a message with the specified sequence number as deleted

public Task DeleteMessageAsync(int sequenceNumber)
ParameterTypeDescription
sequenceNumberInt32Sequence number of a message

Return Value

Task object, with delegate for this operation

See Also


DeleteMessageAsync(string)

Marks a message with the specified sequence number as deleted

public Task DeleteMessageAsync(string uniqueId)
ParameterTypeDescription
uniqueIdStringThe uid of the message

Return Value

Task object, with delegate for this operation

See Also


DeleteMessageAsync(IConnection, int, long)

Marks a message with the specified sequence number as deleted

public Task DeleteMessageAsync(IConnection connection, int sequenceNumber, 
    long modificationSequence)
ParameterTypeDescription
connectionIConnectionConnection to a server
sequenceNumberInt32Sequence number of a message
modificationSequenceInt64Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162

Return Value

Task object, with delegate for this operation

See Also


DeleteMessageAsync(IConnection, string, long)

Marks a message with the specified unique identifier as deleted

public Task DeleteMessageAsync(IConnection connection, string uniqueId, long modificationSequence)
ParameterTypeDescription
connectionIConnectionConnection to a server
uniqueIdStringThe uid of the message
modificationSequenceInt64Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162

Return Value

Task object, with delegate for this operation

See Also


DeleteMessageAsync(int, long)

Marks a message with the specified sequence number as deleted

public Task DeleteMessageAsync(int sequenceNumber, long modificationSequence)
ParameterTypeDescription
sequenceNumberInt32Sequence number of a message
modificationSequenceInt64Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162

Return Value

Task object, with delegate for this operation

See Also


DeleteMessageAsync(string, long)

Marks a message with the specified unique identifier as deleted

public Task DeleteMessageAsync(string uniqueId, long modificationSequence)
ParameterTypeDescription
uniqueIdStringThe uid of the message
modificationSequenceInt64Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162

Return Value

Task object, with delegate for this operation

See Also


DeleteMessageAsync(string, bool)

Marks a message with the specified unique identifier as deleted and commits the deletions if user specifies this. This method works only if server supports UIDPLUS extension. Please, read more https://tools.ietf.org/html/rfc4315

public Task DeleteMessageAsync(string uniqueId, bool commitNow)
ParameterTypeDescription
uniqueIdStringThe uid of the message
commitNowBooleanDefines whether message must be commited now. Please, read more https://tools.ietf.org/html/rfc4315

Return Value

Task object, with delegate for this operation

See Also


DeleteMessageAsync(IConnection, string, bool)

Marks a message with the specified unique identifier as deleted and commits the deletions if user specifies this. This method works only if server supports UIDPLUS extension. Please, read more https://tools.ietf.org/html/rfc4315

public Task DeleteMessageAsync(IConnection connection, string uniqueId, bool commitNow)
ParameterTypeDescription
connectionIConnectionConnection to a server
uniqueIdStringThe uid of the message
commitNowBooleanDefines whether message must be commited now. Please, read more https://tools.ietf.org/html/rfc4315

Return Value

Task object, with delegate for this operation

See Also


DeleteMessageAsync(string, long, bool)

Marks a message with the specified unique identifier as deleted and commits the deletions if user specifies this. This method works only if server supports UIDPLUS extension. Please, read more https://tools.ietf.org/html/rfc4315

public Task DeleteMessageAsync(string uniqueId, long modificationSequence, bool commitNow)
ParameterTypeDescription
uniqueIdStringThe uid of the message
modificationSequenceInt64Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162
commitNowBooleanDefines whether message must be commited now. Please, read more https://tools.ietf.org/html/rfc4315

Return Value

Task object, with delegate for this operation

See Also


DeleteMessageAsync(IConnection, string, long, bool)

Marks a message with the specified unique identifier as deleted and commits the deletions if user specifies this. This method works only if server supports UIDPLUS extension. Please, read more https://tools.ietf.org/html/rfc4315

public Task DeleteMessageAsync(IConnection connection, string uniqueId, long modificationSequence, 
    bool commitNow)
ParameterTypeDescription
connectionIConnectionConnection to a server
uniqueIdStringThe uid of the message
modificationSequenceInt64Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162
commitNowBooleanDefines whether message must be commited now. Please, read more https://tools.ietf.org/html/rfc4315

Return Value

Task object, with delegate for this operation

See Also


DeleteMessageAsync(IConnection, int, CancellationToken)

Marks a message with the specified sequence number as deleted

public Task DeleteMessageAsync(IConnection connection, int sequenceNumber, CancellationToken token)
ParameterTypeDescription
connectionIConnectionConnection to a server
sequenceNumberInt32Sequence number of a message
tokenCancellationTokenPropagates notification that operations should be canceled.

Return Value

Task object, with delegate for this operation

See Also


DeleteMessageAsync(IConnection, string, CancellationToken)

Marks a message with the specified sequence number as deleted

public Task DeleteMessageAsync(IConnection connection, string uniqueId, CancellationToken token)
ParameterTypeDescription
connectionIConnectionConnection to a server
uniqueIdStringThe uid of the message
tokenCancellationTokenPropagates notification that operations should be canceled.

Return Value

Task object, with delegate for this operation

See Also


DeleteMessageAsync(int, CancellationToken)

Marks a message with the specified sequence number as deleted

public Task DeleteMessageAsync(int sequenceNumber, CancellationToken token)
ParameterTypeDescription
sequenceNumberInt32Sequence number of a message
tokenCancellationTokenPropagates notification that operations should be canceled.

Return Value

Task object, with delegate for this operation

See Also


DeleteMessageAsync(string, CancellationToken)

Marks a message with the specified sequence number as deleted

public Task DeleteMessageAsync(string uniqueId, CancellationToken token)
ParameterTypeDescription
uniqueIdStringThe uid of the message
tokenCancellationTokenPropagates notification that operations should be canceled.

Return Value

Task object, with delegate for this operation

See Also


DeleteMessageAsync(IConnection, int, long, CancellationToken)

Marks a message with the specified sequence number as deleted

public Task DeleteMessageAsync(IConnection connection, int sequenceNumber, 
    long modificationSequence, CancellationToken token)
ParameterTypeDescription
connectionIConnectionConnection to a server
sequenceNumberInt32Sequence number of a message
modificationSequenceInt64Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162
tokenCancellationTokenPropagates notification that operations should be canceled.

Return Value

Task object, with delegate for this operation

See Also


DeleteMessageAsync(IConnection, string, long, CancellationToken)

Marks a message with the specified unique identifier as deleted

public Task DeleteMessageAsync(IConnection connection, string uniqueId, long modificationSequence, 
    CancellationToken token)
ParameterTypeDescription
connectionIConnectionConnection to a server
uniqueIdStringThe uid of the message
modificationSequenceInt64Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162
tokenCancellationTokenPropagates notification that operations should be canceled.

Return Value

Task object, with delegate for this operation

See Also


DeleteMessageAsync(int, long, CancellationToken)

Marks a message with the specified sequence number as deleted

public Task DeleteMessageAsync(int sequenceNumber, long modificationSequence, 
    CancellationToken token)
ParameterTypeDescription
sequenceNumberInt32Sequence number of a message
modificationSequenceInt64Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162
tokenCancellationTokenPropagates notification that operations should be canceled.

Return Value

Task object, with delegate for this operation

See Also


DeleteMessageAsync(string, long, CancellationToken)

Marks a message with the specified unique identifier as deleted

public Task DeleteMessageAsync(string uniqueId, long modificationSequence, CancellationToken token)
ParameterTypeDescription
uniqueIdStringThe uid of the message
modificationSequenceInt64Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162
tokenCancellationTokenPropagates notification that operations should be canceled.

Return Value

Task object, with delegate for this operation

See Also


DeleteMessageAsync(string, bool, CancellationToken)

Marks a message with the specified unique identifier as deleted and commits the deletions if user specifies this. This method works only if server supports UIDPLUS extension. Please, read more https://tools.ietf.org/html/rfc4315

public Task DeleteMessageAsync(string uniqueId, bool commitNow, CancellationToken token)
ParameterTypeDescription
uniqueIdStringThe uid of the message
commitNowBooleanDefines whether message must be commited now. Please, read more https://tools.ietf.org/html/rfc4315
tokenCancellationTokenPropagates notification that operations should be canceled.

Return Value

Task object, with delegate for this operation

See Also


DeleteMessageAsync(IConnection, string, bool, CancellationToken)

Marks a message with the specified unique identifier as deleted and commits the deletions if user specifies this. This method works only if server supports UIDPLUS extension. Please, read more https://tools.ietf.org/html/rfc4315

public Task DeleteMessageAsync(IConnection connection, string uniqueId, bool commitNow, 
    CancellationToken token)
ParameterTypeDescription
connectionIConnectionConnection to a server
uniqueIdStringThe uid of the message
commitNowBooleanDefines whether message must be commited now. Please, read more https://tools.ietf.org/html/rfc4315
tokenCancellationTokenPropagates notification that operations should be canceled.

Return Value

Task object, with delegate for this operation

See Also


DeleteMessageAsync(string, long, bool, CancellationToken)

Marks a message with the specified unique identifier as deleted and commits the deletions if user specifies this. This method works only if server supports UIDPLUS extension. Please, read more https://tools.ietf.org/html/rfc4315

public Task DeleteMessageAsync(string uniqueId, long modificationSequence, bool commitNow, 
    CancellationToken token)
ParameterTypeDescription
uniqueIdStringThe uid of the message
modificationSequenceInt64Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162
commitNowBooleanDefines whether message must be commited now. Please, read more https://tools.ietf.org/html/rfc4315
tokenCancellationTokenPropagates notification that operations should be canceled.

Return Value

Task object, with delegate for this operation

See Also


DeleteMessageAsync(IConnection, string, long, bool, CancellationToken)

Marks a message with the specified unique identifier as deleted and commits the deletions if user specifies this. This method works only if server supports UIDPLUS extension. Please, read more https://tools.ietf.org/html/rfc4315

public Task DeleteMessageAsync(IConnection connection, string uniqueId, long modificationSequence, 
    bool commitNow, CancellationToken token)
ParameterTypeDescription
connectionIConnectionConnection to a server
uniqueIdStringThe uid of the message
modificationSequenceInt64Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162
commitNowBooleanDefines whether message must be commited now. Please, read more https://tools.ietf.org/html/rfc4315
tokenCancellationTokenPropagates notification that operations should be canceled.

Return Value

Task object, with delegate for this operation

See Also