Udostępnij za pośrednictwem


ISaveChangeContext2::GetConflictingItemId

Gets the item ID of the item in the destination replica that conflicts with the item to be applied when the change to be applied is the resolution of a constraint conflict.

HRESULT GetConflictingItemId(
  BYTE * pbConflictingItemId, 
  DWORD * pcbIdSize);

Parameters

  • pbConflictingItemId
    [in, out, unique, size_is(*pcbIdSize)] Returns the ID of the item that conflicts with the item to be applied.
  • pcbIdSize
    [in, out] Specifies the number of bytes in pbConflictingItemId. Returns the number of bytes required to retrieve the ID when pbConflictingItemId is too small, or returns the number of bytes written.

Return Value

  • S_OK.

  • E_POINTER when a required parameter is NULL, or when no conflicting item ID exists.

  • HRESULT_FROM_WIN32(ERROR_MORE_DATA) when pbConflictingItemId is too small. In this case, the required number of bytes is returned in pcbIdSize.

Remarks

It is only valid to call this method when the change to be applied is the result of a constraint conflict resolution.

See Also

Reference

ISaveChangeContext2 Interface