Occurs as a data stream is being read or written to the client.
The event handler receives an argument of type PopClient.ProgressEventArgs containing data related to this event. The following PopClient.ProgressEventArgs properties provide information specific to this event.
| Property | Description |
|---|---|
| BytesCopied | Gets a value which specifies the number of bytes of data that has been read or written. |
| BytesTotal | Gets a value which specifies the total number of bytes in the data stream. |
| Message | Gets the message number. |
| 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.