KnowledgeInspector 构造函数

初始化 KnowledgeInspector 类的一个包含指定知识版本和知识对象的新实例。

命名空间: Microsoft.Synchronization
程序集: Microsoft.Synchronization(在 microsoft.synchronization.dll 中)

语法

声明
Public Sub New ( _
    expectedKnowledgeVersion As UInteger, _
    knowledge As SyncKnowledge _
)
用法
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
)
public KnowledgeInspector (
    UInt32 expectedKnowledgeVersion, 
    SyncKnowledge knowledge
)
public function KnowledgeInspector (
    expectedKnowledgeVersion : uint, 
    knowledge : SyncKnowledge
)

参数

  • expectedKnowledgeVersion
    知识对象的版本。
  • knowledge
    要检查的知识对象。

备注

此方法可取得该知识对象的快照。以后对该知识对象的更新不会反映在该检查器所包含的快照中。

请参阅

参考

KnowledgeInspector 类
KnowledgeInspector 成员
Microsoft.Synchronization 命名空间