KnowledgeInspector Constructor

Initializes a new instance of the KnowledgeInspector class that contains the specified knowledge version and knowledge object.

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

public:
KnowledgeInspector(
	unsigned int expectedKnowledgeVersion, 
	SyncKnowledge^ knowledge
)

Parameters

expectedKnowledgeVersion
Type: System::UInt32
The version of the knowledge object.
knowledge
Type: Microsoft.Synchronization::SyncKnowledge
The knowledge object to inspect.

ExceptionCondition
ArgumentNullException

knowledge is a nullptr.

ArgumentException

knowledge is not initialized.

InvalidKnowledgeVersionException

expectedKnowledgeVersion or knowledge.MinimumCompatibilityLevel is not SyncFrameworkVersion1.

This method takes a snapshot of the knowledge object. Later updates to the knowledge object are not reflected in the snapshot that is contained in the inspector.

Show: