SmtpTransferProgressEventArgs Constructor
Namespace: Rebex.Net
Assembly: Rebex.Smtp.dll (version 7.0.9119)
SmtpTransferProgressEventArgs(SmtpTransferState, Int64, Int32)
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.
Declaration
public SmtpTransferProgressEventArgs(SmtpTransferState state, long bytesTransferred, int bytesSinceLastEvent)
Parameters
Type | Name | Description |
---|---|---|
SmtpTransferState | state | Current state. |
Int64 | bytesTransferred | Number of bytes transferred so far. Ignored if state is SmtpTransferState.None. |
Int32 | bytesSinceLastEvent | Number of bytes transferred since the last time the event was raised. Ignored if state is SmtpTransferState.None. |
SmtpTransferProgressEventArgs(SmtpTransferState, Int64, Int32, Int64)
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.
Declaration
public SmtpTransferProgressEventArgs(SmtpTransferState state, long bytesTransferred, int bytesSinceLastEvent, long totalBytes)
Parameters
Type | Name | Description |
---|---|---|
SmtpTransferState | state | Current state. |
Int64 | bytesTransferred | Number of bytes transferred so far. Ignored if state is SmtpTransferState.None. |
Int32 | bytesSinceLastEvent | Number of bytes transferred since the last time the event was raised. Ignored if state is SmtpTransferState.None. |
Int64 | totalBytes | Approximate total number of bytes to be transferred. Ignored if state is SmtpTransferState.None. |