ImapClient.UnselectFolder

UnselectFolder(IConnection)

Permanently removes all messages marked as deleted for currently selected folder and removes selected-state for this folder.

public void UnselectFolder(IConnection connection)
ParameterTypeDescription
connectionIConnectionConnection to a server

See Also


UnselectFolder()

Permanently removes all messages marked as deleted for currently selected folder and removes selected-state for this folder.

public void UnselectFolder()

See Also


UnselectFolder(IConnection, bool)

Unselects folder which are currently selected. if doNotExpunge property is true, all messages are marked as deleted are removed, otherwise deletion canceled. Please note, this operation works only in case if server supports RFC3691 See more https://tools.ietf.org/html/rfc3691

public void UnselectFolder(IConnection connection, bool doNotExpunge)
ParameterTypeDescription
connectionIConnectionConnection to a server
doNotExpungeBooleanSpecifies whether messages marked as deleted should be removed.

See Also


UnselectFolder(bool)

Unselects folder which are currently selected. if doNotExpunge property is true, all messages are marked as deleted are removed, otherwise deletion canceled. Please note, this operation works only in case if server supports RFC3691 See more https://tools.ietf.org/html/rfc3691

public void UnselectFolder(bool doNotExpunge)
ParameterTypeDescription
doNotExpungeBooleanSpecifies whether messages marked as deleted should be removed.

See Also