Occurs as a data stream is being read or written to the client.
The event handler receives an argument of type InternetMail.ProgressEventArgs containing data related to this event. The following InternetMail.ProgressEventArgs properties provide information specific to this event.
| Property | Description |
|---|---|
| Message | Gets the message number. |
| MessageCopied | Gets a value which specifies the number of bytes of data that has been read or written. |
| MessageSize | Gets a value which specifies the total number of bytes in the data stream. |
| Percent | Gets a value which specifies the percentage of data that has been read or written. |
The OnProgress event occurs as a data stream is being read or written to the client. If large amounts of data are being read or written, this event can be used to update a progress bar or other user-interface component to provide the user with some visual feedback on the progress of the operation.
This event is only generated when the ReadStream, WriteStream or StoreStream methods are called.
InternetMail Class | SocketTools Namespace