AgentAsyncContext.Complete Method

The Complete method is a callback to indicate that the asynchronous event handler completed execution.

Namespace: Microsoft.Exchange.Data.Transport
Assembly: Microsoft.Exchange.Data.Transport (in microsoft.exchange.data.transport.dll)

Syntax

'Declaration
Public Overridable Sub Complete
public virtual void Complete ()
public:
virtual void Complete ()
public void Complete ()
public function Complete ()

Remarks

When you are using the AgentAsyncContext class in asynchronous event handlers, make the last line of the event handler a call to the Complete method. Doing this will help you avoid a race condition that could occur if you modify shared data in the event handler.

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