ReceiveCommandEventSource.RejectCommand method (SmtpResponse)
When overridden in a derived class, the RejectCommand method rejects the Simple Mail Transfer Protocol (SMTP) command by using the response specified by the response parameter.
Namespace: Microsoft.Exchange.Data.Transport.Smtp
Assembly: Microsoft.Exchange.Data.Transport (in Microsoft.Exchange.Data.Transport.dll)
Syntax
'Declaration
Public MustOverride Sub RejectCommand ( _
response As SmtpResponse _
)
'Usage
Dim instance As ReceiveCommandEventSource
Dim response As SmtpResponse
instance.RejectCommand(response)
public abstract void RejectCommand(
SmtpResponse response
)
Parameters
response
Type: Microsoft.Exchange.Data.Transport.Smtp.SmtpResponseThe response to send to the client for this command. The SmtpResponse parameter should be a PermanentError (a 5xx status code) or TransientError (a 4xx status code). For more information, see SmtpResponseType Enumeration
See also
Reference
ReceiveCommandEventSource class