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#
Namespace: MailAttachmentDownloaderApiThis would normally be used in a switch statement to distinguish and act upon the event, if need be.
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; }
Assembly: MailAttachmentDownloaderApi (in MailAttachmentDownloaderApi.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
| C# |
|---|
ProcessMailEventType EventType { get; } |