IExchangeImportContentsChanges::ImportMessageDeletion

The ImportMessageDeletion method accepts a message deletion notification from the synchronizer.

HRESULT ImportMessageDeletion(
  ULONG ulFlags,                  
  LPENTRYLIST lpSourceEntryList   
);
 

Parameters

ulFlags
Input parameter. Set this parameter to zero, as this parameter is ignored. lpSourceEntryList

Input parameter. Points to a MAPI ENTRYLIST structure, which contains the list of SOURCE_KEY properties that identify the messages to delete. This parameter cannot be NULL; if you pass a NULL value, ImportMessageDeletion raises an exception.

Return Values

See Return Values.

In addition, ImportMessageDeletion can return one of the following values:

SUCCESS_SUCCESS
The method completed successfully.
SYNC_E_ERROR
An unknown error occurred.
SYNC_E_INVALID_PARAMETER
One of the parameters was not valid.

Remarks

The ImportMessageDeletion method is called by the synchronizer for each message that is deleted. This method should not be called from the agent.

If one of the source key properties in the entry list is not a valid source key property, ImportMessageDeletion exits without processing the rest of the list and returns SYNC_E_INVALID_PARAMETER.

See Also

IExchangeImportContentsChanges, IExchangeImportHierarchyChanges::ImportFolderDeletion