Initializes a new instance of the SmtpTransferProgressEventArgs class with the specified state,
number of bytes transferred during the current transfer and progress since the last time the event was raised.
Namespace:
Rebex.Net
Assembly:
Rebex.Smtp (in Rebex.Smtp.dll)
Syntax
Visual Basic |
---|
Public Sub New ( _ state As SmtpTransferState, _ bytesTransferred As Long, _ bytesSinceLastEvent As Integer, _ totalBytes As Long _ ) |
C# |
---|
public SmtpTransferProgressEventArgs( SmtpTransferState state, long bytesTransferred, int bytesSinceLastEvent, long totalBytes ) |
Parameters
- state
- Type: Rebex.Net..::..SmtpTransferState
Current state.
- bytesTransferred
- Type: System..::..Int64
Number of bytes transferred so far. Ignored if state is SmtpTransferState.None.
- bytesSinceLastEvent
- Type: System..::..Int32
Number of bytes transferred since the last time the event was raised. Ignored if state is SmtpTransferState.None.
- totalBytes
- Type: System..::..Int64
Approximate total number of bytes to be transferred. Ignored if state is SmtpTransferState.None.