ImapClient.UnselectFolderAsync

UnselectFolderAsync(IConnection)

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

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

Return Value

Task object, with delegate for this operation

See Also


UnselectFolderAsync()

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

public Task UnselectFolderAsync()

Return Value

Task object, with delegate for this operation

See Also


UnselectFolderAsync(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 Task UnselectFolderAsync(IConnection connection, bool doNotExpunge)
ParameterTypeDescription
connectionIConnectionConnection to a server
doNotExpungeBooleanSpecifies whether messages marked as deleted should be removed.

Return Value

Task object, with delegate for this operation

See Also


UnselectFolderAsync(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 Task UnselectFolderAsync(bool doNotExpunge)
ParameterTypeDescription
doNotExpungeBooleanSpecifies whether messages marked as deleted should be removed.

Return Value

Task object, with delegate for this operation

See Also


UnselectFolderAsync(IConnection, CancellationToken)

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

public Task UnselectFolderAsync(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

See Also


UnselectFolderAsync(CancellationToken)

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

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

Return Value

Task object, with delegate for this operation

See Also


UnselectFolderAsync(IConnection, bool, CancellationToken)

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 Task UnselectFolderAsync(IConnection connection, bool doNotExpunge, CancellationToken token)
ParameterTypeDescription
connectionIConnectionConnection to a server
doNotExpungeBooleanSpecifies whether messages marked as deleted should be removed.
tokenCancellationTokenPropagates notification that operations should be canceled.

Return Value

Task object, with delegate for this operation

See Also


UnselectFolderAsync(bool, CancellationToken)

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 Task UnselectFolderAsync(bool doNotExpunge, CancellationToken token)
ParameterTypeDescription
doNotExpungeBooleanSpecifies whether messages marked as deleted should be removed.
tokenCancellationTokenPropagates notification that operations should be canceled.

Return Value

Task object, with delegate for this operation

See Also