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 _
)
public abstract void RejectMessage (
SmtpResponse response
)
public:
virtual void RejectMessage (
SmtpResponse response
) abstract
public abstract void RejectMessage (
SmtpResponse response
)
public abstract function RejectMessage (
response : SmtpResponse
)
Parameters
- response
An instance of the SmtpResponse class that specifies the response to send to the client for the message.
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Platforms
Development Platforms
Windows XP Professional with Service Pack 2 (SP2), Windows Server 2003,
Target Platforms
Windows Server 2003