SyncKnowledge::Complement Method

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

Namespace:  Microsoft.Synchronization
Assembly:  Microsoft.Synchronization (in Microsoft.Synchronization.dll)

public:
SyncKnowledge^ Complement(
	SyncKnowledge^ otherKnowledge
)

Parameters

otherKnowledge
Type: Microsoft.Synchronization::SyncKnowledge
The knowledge to remove from this object to calculate the result of the complement operation.

Return Value

Type: Microsoft.Synchronization::SyncKnowledge
The knowledge that is contained in this object but that is not contained in the specified knowledge.

ExceptionCondition
InvalidOperationException

This SyncKnowledge object is not initialized.

ArgumentOutOfRangeException

otherKnowledge is not a valid value.

ArgumentNullException

otherKnowledge is a nullptr.

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.

Show: