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)

Syntax

'Declaration
Public Function Complement ( _
    otherKnowledge As SyncKnowledge _
) As SyncKnowledge
'Usage
Dim instance As SyncKnowledge
Dim otherKnowledge As SyncKnowledge
Dim returnValue As SyncKnowledge

returnValue = instance.Complement(otherKnowledge)
public SyncKnowledge Complement(
    SyncKnowledge otherKnowledge
)
public:
SyncKnowledge^ Complement(
    SyncKnowledge^ otherKnowledge
)
member Complement : 
        otherKnowledge:SyncKnowledge -> SyncKnowledge 
public function Complement(
    otherKnowledge : SyncKnowledge
) : SyncKnowledge

Parameters

Return Value

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

Exceptions

Exception Condition
InvalidOperationException

This SyncKnowledge object is not initialized.

ArgumentOutOfRangeException

otherKnowledge is not a valid value.

ArgumentNullException

otherKnowledge is a null reference (Nothing in Visual Basic).

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.

See Also

Reference

SyncKnowledge Class

Microsoft.Synchronization Namespace