次の方法で共有


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
'Usage
Dim instance As AgentAsyncContext

instance.Complete()
public virtual void 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.

See also

Reference

AgentAsyncContext class

AgentAsyncContext members

Microsoft.Exchange.Data.Transport namespace