다음을 통해 공유


Completed Method

Topic Last Modified: 2006-06-13

This method allows an asynchronous event handler to notify Microsoft® Exchange that it has finished processing an event.

Applies To

IAsyncNotify Interface

Type Library

EXOLEDB Type Library

DLL Implemented In

EXOLEDB.DLL

Syntax

Sub Completed()
HRESULT Completed
();

Return Value

Returns S_OK if successful, or an error value otherwise.

Remarks

In your Component Object Model (COM) event sinks you can process asynchronous events with the following steps.

  1. Obtain the IAsyncNotify Interface from the IExStoreEventInfo Interface that is passed to your Asynchronous sink.
  2. Create a new thread to handle the event.
  3. Return S_PENDING.
  4. Call IAsyncNotify Completed from your new process when you are finished handling the event.

If you return S_PENDING from your event notification and do not call IAsyncNotify Completed, Exchange will notify you of this event again when the store is next restarted.