다음을 통해 공유


SmtpResponse Constructor

The SmtpResponse constructor initializes a new instance of the SmtpResponse structure.

Namespace: Microsoft.Exchange.Data.Transport.Smtp
Assembly: Microsoft.Exchange.Data.Transport (in microsoft.exchange.data.transport.dll)

Syntax

'Declaration
Public Sub New ( _
    statusCode As String, _
    enhancedStatusCode As String, _
    ParamArray statusText As String() _
)
public SmtpResponse (
    string statusCode,
    string enhancedStatusCode,
    params string[] statusText
)
public:
SmtpResponse (
    String^ statusCode, 
    String^ enhancedStatusCode, 
    ... array<String^>^ statusText
)
public SmtpResponse (
    String statusCode, 
    String enhancedStatusCode, 
    String[] statusText
)
public function SmtpResponse (
    statusCode : String, 
    enhancedStatusCode : String, 
    ... statusText : String[]
)

Parameters

  • statusCode
    The status code.
  • enhancedStatusCode
    The enhanced status code.
  • statusText
    Reply text to send to the caller.

Remarks

The statusCode parameter is required. The enhancedStatusCode and statusText parameters may each be empty or null.

Platforms

Development Platforms

Windows XP Professional with Service Pack 2 (SP2), Windows Server 2003,

Target Platforms

Windows Server 2003