Share via


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

See also

Reference

ReceiveMessageEventSource class

ReceiveMessageEventSource members

RejectMessage overload

Microsoft.Exchange.Data.Transport.Smtp namespace