Dela via


SyncKnowledge.Contains Method (SyncKnowledge)

Indicates whether the specified knowledge is known by this knowledge.

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

Syntax

'Declaration
Public Function Contains ( _
    syncKnowledge As SyncKnowledge _
) As Boolean
'Usage
Dim instance As SyncKnowledge
Dim syncKnowledge As SyncKnowledge
Dim returnValue As Boolean

returnValue = instance.Contains(syncKnowledge)
public bool Contains(
    SyncKnowledge syncKnowledge
)
public:
bool Contains(
    SyncKnowledge^ syncKnowledge
)
member Contains : 
        syncKnowledge:SyncKnowledge -> bool 
public function Contains(
    syncKnowledge : SyncKnowledge
) : boolean

Parameters

Return Value

Type: System.Boolean
true if syncKnowledge is known. Otherwise, false.

Exceptions

Exception Condition
InvalidOperationException

This SyncKnowledge object is not initialized.

ArgumentNullException

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

InvalidKnowledgeVersionException

The CompatibilityLevel property is less than SyncFrameworkVersion2.

Remarks

It is not necessary to call MapRemoteKnowledgeToLocal on syncKnowledge before passing it to this method.

See Also

Reference

SyncKnowledge Class

Contains Overload

Microsoft.Synchronization Namespace