ReceiveMessageEventSource.RejectMessage Method
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.SmtpResponse
An instance of the SmtpResponse class that specifies the response to send to the client for the message.