다음을 통해 공유


QueuedMessageEventSource.Defer Method

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 _
)
public abstract void Defer (
    TimeSpan waitTime
)
public:
virtual void Defer (
    TimeSpan waitTime
) abstract
public abstract void Defer (
    TimeSpan waitTime
)
public abstract function Defer (
    waitTime : TimeSpan
)

Parameters

  • waitTime
    The minimum time to wait before reprocessing the MailItem.

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.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows XP Professional with Service Pack 2 (SP2), Windows Server 2003,

Target Platforms

Windows Server 2003