Share via


ReceiveCommandEventSource.RejectCommand method (SmtpResponse, String)

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, _
    trackingContext As String _
)
'Usage
Dim instance As ReceiveCommandEventSource
Dim response As SmtpResponse
Dim trackingContext As String

instance.RejectCommand(response, trackingContext)
public abstract void RejectCommand(
    SmtpResponse response,
    string trackingContext
)

Parameters

See also

Reference

ReceiveCommandEventSource class

ReceiveCommandEventSource members

RejectCommand overload

Microsoft.Exchange.Data.Transport.Smtp namespace