Rebex
Products Downloads Buy Support Contact
Show / Hide Table of Contents

Imap.SubscribeAsync Method

Namespace: Rebex.Net
Assembly: Rebex.Imap.dll (version 7.0.9147)

SubscribeAsync(String, Object)

Begins asynchronous Subscribe operation. Subscribes to a specified folder, adding it to a list of active folders that appear in the folder listings with ImapFolderListMode set to Subscribed.

Declaration
public Task SubscribeAsync(string folder, object state = null)
Parameters
Type Name Description
String folder

Folder to subscribe to.

Object state

An optional user-provided object that identifies this particular asynchronous operation.

Returns
Type Description
Task
Remarks

The only difference between those folders that are subscribed and those that aren't is that a call to GetFolderList(String, ImapFolderListMode, Boolean) using the ImapFolderListMode.Subscribed will only return the subscribed (active) folders. This has absolutely NOTHING to do with notifications.

This method represents IMAP SUBSCRIBE command.

In This Article
  • SubscribeAsync(String, Object)
© REBEX ČR s.r.o. Back to top
Privacy policy
Manage cookies