Share via


SmtpResponse.StatusCode property

The StatusCode property gets the status code for the response.

Namespace:  Microsoft.Exchange.Data.Transport.Smtp
Assembly:  Microsoft.Exchange.Data.Transport (in Microsoft.Exchange.Data.Transport.dll)

Syntax

'Declaration
Public ReadOnly Property StatusCode As String
    Get
'Usage
Dim instance As SmtpResponse
Dim value As String

value = instance.StatusCode
public string StatusCode { get; }

Property value

Type: System.String
The StatusCode property returns a string value that contains the status code for the response.

Remarks

The same StatusCode property value must appear on each line of a multiline response.

See also

Reference

SmtpResponse structure

SmtpResponse members

Microsoft.Exchange.Data.Transport.Smtp namespace