Share via


IChangeBatchCallback::OnAddingItemToBatch

Indicates whether the specified item should be included in a change batch.

HRESULT OnAddingItemToBatch( 
  IItemMetadata *pItemMetadata,
  BOOL *pfShouldIncludeInBatch);

Parameters

  • pItemMetadata
    [in] The metadata for the item.
  • pfShouldIncludeInBatch
    [out] Returns TRUE if the item should be included in the change batch; otherwise, returns FALSE.

Return Value

  • S_OK

  • E_POINTER

  • Provider-specific error codes.

Remarks

Metadata Storage Service calls OnAddingItemToBatch one time for each item change that is detected during change detection. When OnAddingItemToBatch is called, it can inspect the item change metadata and indicate whether the change should be included in the change batch.

See Also

Reference

IChangeBatchCallback Interface