ImapClient.StartMonitoring

ImapClient.StartMonitoring method

Starts monitoring of message changes for specified folder.

public void StartMonitoring(ImapMonitoringEventHandler callback, 
    ImapMonitoringErrorEventHandler errorCallback, string folderName = "Inbox")
ParameterTypeDescription
callbackImapMonitoringEventHandlerThe callback function for monitoring operation.
errorCallbackImapMonitoringErrorEventHandlerThe 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.
folderNameStringThe folder for monitoring operation.

See Also