SyncKnowledge.Compare Method

Performs a fast comparison between the specified knowledge cookie and this knowledge object.

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

Syntax

'Declaration
Public Function Compare ( _
    otherCookie As KnowledgeCookie _
) As KnowledgeCookieComparisonResult
'Usage
Dim instance As SyncKnowledge
Dim otherCookie As KnowledgeCookie
Dim returnValue As KnowledgeCookieComparisonResult

returnValue = instance.Compare(otherCookie)
public KnowledgeCookieComparisonResult Compare(
    KnowledgeCookie otherCookie
)
public:
KnowledgeCookieComparisonResult Compare(
    KnowledgeCookie^ otherCookie
)
member Compare : 
        otherCookie:KnowledgeCookie -> KnowledgeCookieComparisonResult 
public function Compare(
    otherCookie : KnowledgeCookie
) : KnowledgeCookieComparisonResult

Parameters

Return Value

Type: Microsoft.Synchronization.KnowledgeCookieComparisonResult
The result of the comparison.

Exceptions

Exception Condition
ArgumentNullException

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

Remarks

This method can be used when the performance of the knowledge comparison operation is especially important.

See Also

Reference

SyncKnowledge Class

Microsoft.Synchronization Namespace