ReceiveMessageEventSource.RejectMessage method (SmtpResponse)
When overridden in a derived class, the RejectMessage method rejects the complete message by sending a Simple Mail Transfer Protocol (SMTP) 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 RejectMessage ( _
response As SmtpResponse _
)
'Usage
Dim instance As ReceiveMessageEventSource
Dim response As SmtpResponse
instance.RejectMessage(response)
public abstract void RejectMessage(
SmtpResponse response
)
Parameters
response
Type: Microsoft.Exchange.Data.Transport.Smtp.SmtpResponseAn instance of the SmtpResponse class that specifies the response to send to the client for the message.
See also
Reference
ReceiveMessageEventSource class