SyncKnowledge.Contains Method (SyncId, SyncId, SyncId, SyncVersion)

Indicates whether the specified change unit change is known by this knowledge.

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

Syntax

'Declaration
Public Function Contains ( _
    replicaId As SyncId, _
    itemId As SyncId, _
    changeUnitId As SyncId, _
    changeVersion As SyncVersion _
) As Boolean
'Usage
Dim instance As SyncKnowledge
Dim replicaId As SyncId
Dim itemId As SyncId
Dim changeUnitId As SyncId
Dim changeVersion As SyncVersion
Dim returnValue As Boolean

returnValue = instance.Contains(replicaId, _
    itemId, changeUnitId, changeVersion)
public bool Contains(
    SyncId replicaId,
    SyncId itemId,
    SyncId changeUnitId,
    SyncVersion changeVersion
)
public:
bool Contains(
    SyncId^ replicaId, 
    SyncId^ itemId, 
    SyncId^ changeUnitId, 
    SyncVersion^ changeVersion
)
member Contains : 
        replicaId:SyncId * 
        itemId:SyncId * 
        changeUnitId:SyncId * 
        changeVersion:SyncVersion -> bool 
public function Contains(
    replicaId : SyncId, 
    itemId : SyncId, 
    changeUnitId : SyncId, 
    changeVersion : SyncVersion
) : boolean

Parameters

Return Value

Type: System.Boolean
true if the change unit change is known. Otherwise, false.

Exceptions

Exception Condition
InvalidOperationException

This SyncKnowledge object is not initialized.

ArgumentNullException

replicaId, itemId,changeUnitId, or changeVersion or is a null reference (Nothing in Visual Basic).

SyncIdFormatMismatchException

replicaId, itemId, or changeUnitId is not in the ID format specified for this knowledge object.

See Also

Reference

SyncKnowledge Class

Contains Overload

Microsoft.Synchronization Namespace