Sdílet prostřednictvím


IClockVectorServices::CreateClockVector

Creates an IClockVector object that can be used to build a knowledge object.

HRESULT CreateClockVector(
  DWORD cClockVectorElements,
  IClockVectorElement** ppiClockVectorElements,
  IClockVector** 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.
  • ppiClockVector
    [out] Returns the newly created clock vector object.

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