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
response
Type: Microsoft.Exchange.Data.Transport.Smtp.SmtpResponseThe response to send to the client for this command. The SmtpResponse parameter should be a PermanentError (a 5xx status code) or TransientError (a 4xx status code). For more information, see SmtpResponseType Enumeration
- trackingContext
Type: System.String
See also
Reference
ReceiveCommandEventSource class