IAsyncImapClient.UnsubscribeFolderAsync

IAsyncImapClient.UnsubscribeFolderAsync method

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

public Task UnsubscribeFolderAsync(string folderName, IConnection connection = null, 
    CancellationToken token = default)
ParameterTypeDescription
connectionStringConnection to a server
folderNameIConnectionName of the folder
tokenCancellationTokenPropagates notification that operations should be canceled.

Return Value

Task object, with delegate for this operation

See Also