Gets the event type of the event.
This would normally be used in a switch statement to distinguish and act upon the event, if need be.
CopyC#
switch (imapEvent.EventType)
{    
   case ProcessMailEventType.MailProcessSearchResults:
       IProcessSearchResultEvent processEvent = (IProcessSearchResultEvent)imapEvent;
       Console.WriteLine("Processing message " + processEvent.MessageNumberBeingProcessed + " of " + processEvent.TotalNumberOfMessages + "....");
       break;
   case ProcessMailEventType.MailDownloadComplete:
       Console.WriteLine(imapEvent.StatusString + ", file=" + Path.GetFileName(imapEvent.FilenameOrFoldername));
       break;
   default:
       Console.WriteLine(imapEvent.StatusString);
   break;
}

Namespace: MailAttachmentDownloaderApi
Assembly: MailAttachmentDownloaderApi (in MailAttachmentDownloaderApi.dll) Version: 1.0.0.0 (1.0.0.0)

Syntax

C#
ProcessMailEventType EventType { get; }

See Also