ImapClient.StartMonitoring method

Starts monitoring of message changes for specified folder.

public void StartMonitoring(ImapMonitoringEventHandler callback, 
    ImapMonitoringErrorEventHandler errorCallback, string folderName = "Inbox")
Parameter Type Description
callback ImapMonitoringEventHandler The callback function for monitoring operation.
errorCallback ImapMonitoringErrorEventHandler The callback function for monitoring error handling. Monitoring of specified folder is stopped when this callback is called. The callback also provides a state holder so folder monitoring could be resumed using ResumeMonitoring method.
folderName String The folder for monitoring operation.

See Also