ISyncChangeBatchBase::EndOrderedGroup method (winsync.h)

Closes a previously opened ordered group in the change batch.

Syntax

HRESULT EndOrderedGroup(
  [in] const BYTE     *pbUpperBound,
  [in] ISyncKnowledge *pMadeWithKnowledge
);

Parameters

[in] pbUpperBound

The closed upper bound of item IDs for this ordered group. To specify an upper bound of infinity, use NULL.

[in] pMadeWithKnowledge

The knowledge of the replica that made this group.

Return value

The possible return codes include, but are not limited to, the values shown in the following table.

Return code Description
S_OK
The method succeeded.
SYNC_E_INVALID_OPERATION
No group is open or an unordered group is open.
SYNC_E_RANGE_OUT_OF_ORDER
pbUpperBound is less than the ID of the last item that was added to the group.
SYNC_E_CHANGE_BATCH_IS_READ_ONLY
The object is an ISyncFullEnumerationChangeBatch object and a group has already been added to the batch.

Requirements

Requirement Value
Minimum supported client Windows 7 [desktop apps only]
Minimum supported server Windows Server 2008 R2 [desktop apps only]
Target Platform Windows
Header winsync.h

See also

ISyncChangeBatchBase Interface

ISyncKnowledge Interface