ImapClient.SubscribeFolderAsync

SubscribeFolderAsync(IConnection, string)

Sent the SUBSCRIBE command that adds the specified mailbox name to the server’s set of “active” mailboxes.

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

Return Value

Task object, with delegate for this operation

See Also


SubscribeFolderAsync(string)

Sent the SUBSCRIBE command that adds the specified mailbox name to the server’s set of “active” mailboxes.

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

Return Value

Task object, with delegate for this operation

See Also


SubscribeFolderAsync(IConnection, string, CancellationToken)

Sent the SUBSCRIBE command that adds the specified mailbox name to the server’s set of “active” mailboxes.

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


SubscribeFolderAsync(string, CancellationToken)

Sent the SUBSCRIBE command that adds the specified mailbox name to the server’s set of “active” mailboxes.

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