Initializes a new instance of the SmtpResponse class with the specified code, enhanced code, description and raw response string.

Namespace:  Rebex.Net
Assembly:  Rebex.Smtp (in Rebex.Smtp.dll)

Syntax

Visual Basic
Public Sub New ( _
	code As Integer, _
	subject As Integer, _
	detail As Integer, _
	description As String, _
	raw As String _
)
C#
public SmtpResponse(
	int code,
	int subject,
	int detail,
	string description,
	string raw
)

Parameters

code
Type: System..::..Int32
The SMTP response code. Must be in range of 100 to 599.
subject
Type: System..::..Int32
The SMTP enhanced response code subject. Must be in range of 1 to 999.
detail
Type: System..::..Int32
The SMTP enhanced response code detail. Must be in range of 1 to 999.
description
Type: System..::..String
The description of the response code.
raw
Type: System..::..String
Raw SMTP response.

Version Information

.NET Compact Framework

Supported in: 3.9, 3.5

See Also