SyncKnowledge::Contains Method (SyncKnowledge)

Indicates whether the specified knowledge is known by this knowledge.

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

public:
bool Contains(
	SyncKnowledge^ syncKnowledge
)

Parameters

syncKnowledge
Type: Microsoft.Synchronization::SyncKnowledge
The knowledge to look up.

Return Value

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

ExceptionCondition
InvalidOperationException

This SyncKnowledge object is not initialized.

ArgumentNullException

syncKnowledge is a nullptr.

InvalidKnowledgeVersionException

The CompatibilityLevel property is less than SyncFrameworkVersion2.

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

Show: