QueuedMessageEventSource.Defer method (TimeSpan)

When overridden in a derived class, the Defer method reverts the contents of the current MailItem to the original contents and defers processing of the MailItem.

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 _
)
'Usage
Dim instance As QueuedMessageEventSource
Dim waitTime As TimeSpan

instance.Defer(waitTime)
public abstract void Defer(
    TimeSpan waitTime
)

Parameters

Remarks

The Defer method reverts the contents of the current MailItem to the original contents that existed when the message was committed to the queue. Any later attempts to access the MailItem will result in a null reference exception.

See also

Reference

QueuedMessageEventSource class

QueuedMessageEventSource members

Defer overload

Microsoft.Exchange.Data.Transport.Routing namespace