ImapClient.UnsubscribeFolderAsync

UnsubscribeFolderAsync(IConnection, string)

Sent the UNSUBSCRIBE command that removes the specified mailbox name from the server’s set of “active” mailboxes

public Task UnsubscribeFolderAsync(IConnection connection, string folderName)
ParameterTypeDescription
connectionIConnectionConnection to a server
folderNameStringName of the folder

Return Value

Task object, with delegate for this operation

See Also


UnsubscribeFolderAsync(string)

Sent the UNSUBSCRIBE command that removes the specified mailbox name from the server’s set of “active” mailboxes

public Task UnsubscribeFolderAsync(string folderName)
ParameterTypeDescription
folderNameStringName of the folder

Return Value

Task object, with delegate for this operation

See Also


UnsubscribeFolderAsync(IConnection, string, CancellationToken)

Sent the UNSUBSCRIBE command that removes the specified mailbox name from the server’s set of “active” mailboxes

public Task UnsubscribeFolderAsync(IConnection connection, string folderName, 
    CancellationToken token)
ParameterTypeDescription
connectionIConnectionConnection to a server
folderNameStringName of the folder
tokenCancellationTokenPropagates notification that operations should be canceled.

Return Value

Task object, with delegate for this operation

See Also


UnsubscribeFolderAsync(string, CancellationToken)

Sent the UNSUBSCRIBE command that removes the specified mailbox name from the server’s set of “active” mailboxes

public Task UnsubscribeFolderAsync(string folderName, CancellationToken token)
ParameterTypeDescription
folderNameStringName of the folder
tokenCancellationTokenPropagates notification that operations should be canceled.

Return Value

Task object, with delegate for this operation

See Also