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)
Syntax
'Declaration
Public Sub New ( _
expectedKnowledgeVersion As UInteger, _
knowledge As SyncKnowledge _
)
'Usage
Dim expectedKnowledgeVersion As UInteger
Dim knowledge As SyncKnowledge
Dim instance As New KnowledgeInspector(expectedKnowledgeVersion, _
knowledge)
public KnowledgeInspector(
uint expectedKnowledgeVersion,
SyncKnowledge knowledge
)
public:
KnowledgeInspector(
unsigned int expectedKnowledgeVersion,
SyncKnowledge^ knowledge
)
new :
expectedKnowledgeVersion:uint32 *
knowledge:SyncKnowledge -> KnowledgeInspector
public function KnowledgeInspector(
expectedKnowledgeVersion : uint,
knowledge : SyncKnowledge
)
Parameters
- expectedKnowledgeVersion
Type: System.UInt32
The version of the knowledge object.
- knowledge
Type: Microsoft.Synchronization.SyncKnowledge
The knowledge object to inspect.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | knowledge is a null reference (Nothing in Visual Basic). |
ArgumentException | knowledge is not initialized. |
InvalidKnowledgeVersionException | expectedKnowledgeVersion or knowledge.MinimumCompatibilityLevel is not SyncFrameworkVersion1. |
Remarks
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.