Imap.UnsubscribeAsync Method
Namespace: Rebex.Net
Assembly: Rebex.Imap.dll (version 7.0.9147)
UnsubscribeAsync(String, Object)
Begins asynchronous Unsubscribe operation.
Unsubscribes from a specified folder, removing it to a list of active folders that
appear in the folder listings with Imap
Declaration
public Task UnsubscribeAsync(string folder, object state = null)
Parameters
Type | Name | Description |
---|---|---|
String | folder | Folder to unsubscribe from. |
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 Get
This method represents IMAP UNSUBSCRIBE command.