ImapClient.DeleteMessages

Contents
[ ]

DeleteMessages(IConnection, IEnumerable<int>)

Marks a message with the specified sequence number as deleted

public void DeleteMessages(IConnection connection, IEnumerable<int> sequenceSet)
ParameterTypeDescription
connectionIConnectionConnection to a server
sequenceSetIEnumerable`1The set of sequence numbers for messages

Exceptions

exceptioncondition
AsposeArgumentExceptionIf sequenceSet is null or empty.

See Also


DeleteMessages(IConnection, IEnumerable<string>)

Marks a message with the specified sequence number as deleted

public void DeleteMessages(IConnection connection, IEnumerable<string> uidSet)
ParameterTypeDescription
connectionIConnectionConnection to a server
uidSetIEnumerable`1The set of UID for messages

Exceptions

exceptioncondition
AsposeArgumentExceptionIf uidSet is null or empty.

See Also


DeleteMessages(IEnumerable<int>)

Marks a message with the specified sequence number as deleted

public void DeleteMessages(IEnumerable<int> sequenceSet)
ParameterTypeDescription
sequenceSetIEnumerable`1The set of sequence numbers for messages

Exceptions

exceptioncondition
AsposeArgumentExceptionIf sequenceSet is null or empty.

See Also


DeleteMessages(IEnumerable<string>)

Marks a message with the specified sequence number as deleted

public void DeleteMessages(IEnumerable<string> uidSet)
ParameterTypeDescription
uidSetIEnumerable`1The set of UID for messages

Exceptions

exceptioncondition
AsposeArgumentExceptionIf uidSet is null or empty.

See Also


DeleteMessages(IConnection, IEnumerable<int>, long)

Marks a message with the specified sequence number as deleted

public void DeleteMessages(IConnection connection, IEnumerable<int> sequenceSet, 
    long modificationSequence)
ParameterTypeDescription
connectionIConnectionConnection to a server
sequenceSetIEnumerable`1The set of sequence numbers for messages
modificationSequenceInt64Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162

Exceptions

exceptioncondition
AsposeArgumentExceptionIf sequenceSet is null or empty.

See Also


DeleteMessages(IConnection, IEnumerable<string>, long)

Marks a message with the specified unique identifier as deleted

public void DeleteMessages(IConnection connection, IEnumerable<string> uidSet, 
    long modificationSequence)
ParameterTypeDescription
connectionIConnectionConnection to a server
uidSetIEnumerable`1The set of UID for messages
modificationSequenceInt64Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162

Exceptions

exceptioncondition
AsposeArgumentExceptionIf uidSet is null or empty.

See Also


DeleteMessages(IEnumerable<int>, long)

Marks a message with the specified sequence number as deleted

public void DeleteMessages(IEnumerable<int> sequenceSet, long modificationSequence)
ParameterTypeDescription
sequenceSetIEnumerable`1The set of sequence numbers for messages
modificationSequenceInt64Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162

Exceptions

exceptioncondition
AsposeArgumentExceptionIf sequenceSet is null or empty.

See Also


DeleteMessages(IEnumerable<string>, long)

Marks a message with the specified unique identifier as deleted

public void DeleteMessages(IEnumerable<string> uidSet, long modificationSequence)
ParameterTypeDescription
uidSetIEnumerable`1The set of UID for messages
modificationSequenceInt64Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162

Exceptions

exceptioncondition
AsposeArgumentExceptionIf uidSet is null or empty.

See Also


DeleteMessages(IEnumerable<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 void DeleteMessages(IEnumerable<string> uidSet, bool commitNow)
ParameterTypeDescription
uidSetIEnumerable`1The set of UID for messages
commitNowBooleanDefines whether message must be commited now. Please, read more https://tools.ietf.org/html/rfc4315

Exceptions

exceptioncondition
AsposeArgumentExceptionIf uidSet is null or empty.

See Also


DeleteMessages(IConnection, IEnumerable<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 void DeleteMessages(IConnection connection, IEnumerable<string> uidSet, bool commitNow)
ParameterTypeDescription
connectionIConnectionConnection to a server
uidSetIEnumerable`1The set of UID for messages
commitNowBooleanDefines whether message must be commited now. Please, read more https://tools.ietf.org/html/rfc4315

Exceptions

exceptioncondition
AsposeArgumentExceptionIf uidSet is null or empty.

See Also


DeleteMessages(IEnumerable<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 void DeleteMessages(IEnumerable<string> uidSet, long modificationSequence, bool commitNow)
ParameterTypeDescription
uidSetIEnumerable`1The set of UID for messages
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

Exceptions

exceptioncondition
AsposeArgumentExceptionIf uidSet is null or empty.

See Also


DeleteMessages(IConnection, IEnumerable<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 void DeleteMessages(IConnection connection, IEnumerable<string> uidSet, 
    long modificationSequence, bool commitNow)
ParameterTypeDescription
connectionIConnectionConnection to a server
uidSetIEnumerable`1The set of UID for messages
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

Exceptions

exceptioncondition
AsposeArgumentExceptionIf uidSet is null or empty.

See Also


DeleteMessages(IConnection, int, int)

Marks a message with the specified sequence number as deleted

public void DeleteMessages(IConnection connection, int startSequence, int endSequence)
ParameterTypeDescription
connectionIConnectionConnection to a server
startSequenceInt32The starting sequence number of a message list
endSequenceInt32The ending sequence number of a message list

See Also


DeleteMessages(IConnection, string, string)

Marks a message with the specified sequence number as deleted

public void DeleteMessages(IConnection connection, string startUid, string endUid)
ParameterTypeDescription
connectionIConnectionConnection to a server
startUidStringThe starting UID of a message list
endUidStringThe ending UID of a message list

See Also


DeleteMessages(int, int)

Marks a message with the specified sequence number as deleted

public void DeleteMessages(int startSequence, int endSequence)
ParameterTypeDescription
startSequenceInt32The starting sequence number of a message list
endSequenceInt32The ending sequence number of a message list

See Also


DeleteMessages(string, string)

Marks a message with the specified sequence number as deleted

public void DeleteMessages(string startUid, string endUid)
ParameterTypeDescription
startUidStringThe starting UID of a message list
endUidStringThe ending UID of a message list

See Also


DeleteMessages(IConnection, int, int, long)

Marks a message with the specified sequence number as deleted

public void DeleteMessages(IConnection connection, int startSequence, int endSequence, 
    long modificationSequence)
ParameterTypeDescription
connectionIConnectionConnection to a server
startSequenceInt32The starting sequence number of a message list
endSequenceInt32The ending sequence number of a message list
modificationSequenceInt64Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162

See Also


DeleteMessages(IConnection, string, string, long)

Marks a message with the specified unique identifier as deleted

public void DeleteMessages(IConnection connection, string startUid, string endUid, 
    long modificationSequence)
ParameterTypeDescription
connectionIConnectionConnection to a server
startUidStringThe starting UID of a message list
endUidStringThe ending UID of a message list
modificationSequenceInt64Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162

See Also


DeleteMessages(int, int, long)

Marks a message with the specified sequence number as deleted

public void DeleteMessages(int startSequence, int endSequence, long modificationSequence)
ParameterTypeDescription
startSequenceInt32The starting sequence number of a message list
endSequenceInt32The ending sequence number of a message list
modificationSequenceInt64Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162

See Also


DeleteMessages(string, string, long)

Marks a message with the specified unique identifier as deleted

public void DeleteMessages(string startUid, string endUid, long modificationSequence)
ParameterTypeDescription
startUidStringThe starting UID of a message list
endUidStringThe ending UID of a message list
modificationSequenceInt64Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162

See Also


DeleteMessages(string, 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 void DeleteMessages(string startUid, string endUid, bool commitNow)
ParameterTypeDescription
startUidStringThe starting UID of a message list
endUidStringThe ending UID of a message list
commitNowBooleanDefines whether message must be commited now. Please, read more https://tools.ietf.org/html/rfc4315

See Also


DeleteMessages(IConnection, string, 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 void DeleteMessages(IConnection connection, string startUid, string endUid, bool commitNow)
ParameterTypeDescription
connectionIConnectionConnection to a server
startUidStringThe starting UID of a message list
endUidStringThe ending UID of a message list
commitNowBooleanDefines whether message must be commited now. Please, read more https://tools.ietf.org/html/rfc4315

See Also


DeleteMessages(string, 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 void DeleteMessages(string startUid, string endUid, long modificationSequence, 
    bool commitNow)
ParameterTypeDescription
startUidStringThe starting UID of a message list
endUidStringThe ending UID of a message list
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

See Also


DeleteMessages(IConnection, string, 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 void DeleteMessages(IConnection connection, string startUid, string endUid, 
    long modificationSequence, bool commitNow)
ParameterTypeDescription
connectionIConnectionConnection to a server
startUidStringThe starting UID of a message list
endUidStringThe ending UID of a message list
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

See Also


DeleteMessages(IConnection, IEnumerable<ImapMessageInfo>)

Marks a message with the specified sequence number as deleted

public void DeleteMessages(IConnection connection, IEnumerable<ImapMessageInfo> messageInfoSet)
ParameterTypeDescription
connectionIConnectionConnection to a server
messageInfoSetIEnumerable`1The set of ImapMessageInfo for deletion

Exceptions

exceptioncondition
AsposeArgumentExceptionIf messageInfoSet is null or empty.

See Also


DeleteMessages(IEnumerable<ImapMessageInfo>)

Marks a message with the specified sequence number as deleted

public void DeleteMessages(IEnumerable<ImapMessageInfo> messageInfoSet)
ParameterTypeDescription
messageInfoSetIEnumerable`1The set of ImapMessageInfo for deletion

Exceptions

exceptioncondition
AsposeArgumentExceptionIf messageInfoSet is null or empty.

See Also


DeleteMessages(IConnection, IEnumerable<ImapMessageInfo>, long)

Marks a message with the specified unique identifier as deleted

public void DeleteMessages(IConnection connection, IEnumerable<ImapMessageInfo> messageInfoSet, 
    long modificationSequence)
ParameterTypeDescription
connectionIConnectionConnection to a server
messageInfoSetIEnumerable`1The set of ImapMessageInfo for deletion
modificationSequenceInt64Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162

Exceptions

exceptioncondition
AsposeArgumentExceptionIf messageInfoSet is null or empty.

See Also


DeleteMessages(IEnumerable<ImapMessageInfo>, long)

Marks a message with the specified unique identifier as deleted

public void DeleteMessages(IEnumerable<ImapMessageInfo> messageInfoSet, long modificationSequence)
ParameterTypeDescription
messageInfoSetIEnumerable`1The set of ImapMessageInfo for deletion
modificationSequenceInt64Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162

Exceptions

exceptioncondition
AsposeArgumentExceptionIf messageInfoSet is null or empty.

See Also


DeleteMessages(IEnumerable<ImapMessageInfo>, 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 void DeleteMessages(IEnumerable<ImapMessageInfo> messageInfoSet, bool commitNow)
ParameterTypeDescription
messageInfoSetIEnumerable`1The set of ImapMessageInfo for deletion
commitNowBooleanDefines whether message must be commited now. Please, read more https://tools.ietf.org/html/rfc4315

Exceptions

exceptioncondition
AsposeArgumentExceptionIf messageInfoSet is null or empty.

See Also


DeleteMessages(IConnection, IEnumerable<ImapMessageInfo>, 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 void DeleteMessages(IConnection connection, IEnumerable<ImapMessageInfo> messageInfoSet, 
    bool commitNow)
ParameterTypeDescription
connectionIConnectionConnection to a server
messageInfoSetIEnumerable`1The set of ImapMessageInfo for deletion
commitNowBooleanDefines whether message must be commited now. Please, read more https://tools.ietf.org/html/rfc4315

Exceptions

exceptioncondition
AsposeArgumentExceptionIf messageInfoSet is null or empty.

See Also


DeleteMessages(IEnumerable<ImapMessageInfo>, 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 void DeleteMessages(IEnumerable<ImapMessageInfo> messageInfoSet, long modificationSequence, 
    bool commitNow)
ParameterTypeDescription
messageInfoSetIEnumerable`1The set of ImapMessageInfo for deletion
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

Exceptions

exceptioncondition
AsposeArgumentExceptionIf messageInfoSet is null or empty.

See Also


DeleteMessages(IConnection, IEnumerable<ImapMessageInfo>, 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 void DeleteMessages(IConnection connection, IEnumerable<ImapMessageInfo> messageInfoSet, 
    long modificationSequence, bool commitNow)
ParameterTypeDescription
connectionIConnectionConnection to a server
messageInfoSetIEnumerable`1The set of ImapMessageInfo for deletion
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

Exceptions

exceptioncondition
AsposeArgumentExceptionIf messageInfoSet is null or empty.

See Also