SocketTools .NET Edition

SmtpClientException Constructor (Int32)

Initializes a new instance of the SmtpClientException class with a specified error number.

[Visual Basic]
Overloads Public Sub New( _
   ByVal code As Integer _
)
[C#]
public SmtpClientException(
   int code
);

Parameters

code
An integer value which specifies an error code.

Remarks

This constructor sets the ErrorCode property to the specified error code. For more information about the errors that may occur, refer to the SmtpClient.ErrorCode enumeration.

See Also