Share via


IClockVectorServices::CreateFeedClockVector

Creates an IFeedClockVector object that contains FeedSync information and that can be used to build a knowledge object.

HRESULT CreateClockVectorSSE(
  DWORD cClockVectorElements,
  IFeedClockVectorElement** ppiClockVectorElements,
  DWORD dwUpdateCount,
  BOOL fIsNoConflictsSpecified,
  IFeedClockVector** ppiClockVector);

Parameters

  • cClockVectorElements
    [in] The number of elements in ppiClockVectorElements.
  • ppiClockVectorElements
    [in, size_is(cClockVectorElements)] The list of clock vector elements to add to the new clock vector.
  • dwUpdateCount
    [in] The number of updates that are made to the item. This value corresponds to the updates attribute of the FeedSync item.
  • fIsNoConflictsSpecified
    [in] TRUE if conflicts are not preserved for the item; otherwise, FALSE. This value corresponds to the noconflicts attribute of the FeedSync item.
  • ppiClockVector
    [out] Returns the newly created clock vector.

Return Value

  • S_OK

  • E_POINTER

  • E_OUTOFMEMORY

  • SYNC_E_INVALIDORDERFORVECTORELEMENTS if the clock vector elements in ppiClockVectorElements are not in increasing replica key order.

Remarks

The clock vector elements in ppiClockVectorElements must be ordered by their replica key values from the lowest to highest.

See Also

Reference

IClockVectorServices Interface