ISyncKnowledge2::Complement method (winsync.h)

Returns the knowledge that is contained in this object but that is not contained in the specified knowledge.

Syntax

HRESULT Complement(
  [in]  ISyncKnowledge *pSyncKnowledge,
  [out] ISyncKnowledge **ppComplementedKnowledge
);

Parameters

[in] pSyncKnowledge

The knowledge to remove from this object to calculate the result of the complement operation.

[out] ppComplementedKnowledge

The knowledge that is contained in this object but that is not contained in the specified knowledge.

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.
E_POINTER
Invalid pointer.

Remarks

The complement operation can be thought of conceptually as a subtraction operation. The specified knowledge is subtracted from the knowledge in this object, and the result is returned.

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

ISyncKnowledge Interface

ISyncKnowledge2 Interface