SmtpResponse.ConnectionDroppedDueTo method
Specifies a reason why the connection was dropped.
Namespace: Microsoft.Exchange.Data.Transport.Smtp
Assembly: Microsoft.Exchange.Data.Transport (in Microsoft.Exchange.Data.Transport.dll)
Syntax
'Declaration
Public Shared Function ConnectionDroppedDueTo ( _
reason As String _
) As SmtpResponse
'Usage
Dim reason As String
Dim returnValue As SmtpResponse
returnValue = SmtpResponse.ConnectionDroppedDueTo(reason)
public static SmtpResponse ConnectionDroppedDueTo(
string reason
)
Parameters
reason
Type: System.StringThe customized reason the connection was dropped.
Return value
Type: Microsoft.Exchange.Data.Transport.Smtp.SmtpResponse
The reason the connection was dropped.