QueuedMessageEventSource.Defer method (TimeSpan, SmtpResponse)
When overridden in a derived class, reverts the contents of the current MailItem type to the original contents and defers processing of the MailItem object.
Namespace: Microsoft.Exchange.Data.Transport.Routing
Assembly: Microsoft.Exchange.Data.Transport (in Microsoft.Exchange.Data.Transport.dll)
Syntax
'Declaration
Public MustOverride Sub Defer ( _
waitTime As TimeSpan, _
deferReason As SmtpResponse _
)
'Usage
Dim instance As QueuedMessageEventSource
Dim waitTime As TimeSpan
Dim deferReason As SmtpResponse
instance.Defer(waitTime, deferReason)
public abstract void Defer(
TimeSpan waitTime,
SmtpResponse deferReason
)
Parameters
waitTime
Type: System.TimeSpanThe minimum time to wait before reprocessing the MailItem object.
deferReason
Type: Microsoft.Exchange.Data.Transport.Smtp.SmtpResponseThe reason for deferring the MailItem object.
Remarks
The Defer(TimeSpan, SmtpResponse) method reverts the contents of the current MailItem object to the original contents that existed when the message was committed to the queue. Any later attempts to access the MailItem object will result in a null reference exception.
See also
Reference
QueuedMessageEventSource class