Compare 方法
执行在指定的知识 Cookie 与此知识对象之间的快速比较。
命名空间: Microsoft.Synchronization
程序集: Microsoft.Synchronization(在 Microsoft.Synchronization.dll 中)
语法
声明
Public Function Compare ( _
otherCookie As KnowledgeCookie _
) As KnowledgeCookieComparisonResult
用法
Dim instance As SyncKnowledge
Dim otherCookie As KnowledgeCookie
Dim returnValue As KnowledgeCookieComparisonResult
returnValue = instance.Compare(otherCookie)
public KnowledgeCookieComparisonResult Compare(
KnowledgeCookie otherCookie
)
public:
KnowledgeCookieComparisonResult Compare(
KnowledgeCookie^ otherCookie
)
member Compare :
otherCookie:KnowledgeCookie -> KnowledgeCookieComparisonResult
public function Compare(
otherCookie : KnowledgeCookie
) : KnowledgeCookieComparisonResult
参数
- otherCookie
类型:Microsoft.Synchronization. . :: . .KnowledgeCookie
要与此对象进行比较的知识 Cookie。
返回值
类型:Microsoft.Synchronization. . :: . .KnowledgeCookieComparisonResult
比较的结果。
异常
异常 | 条件 |
---|---|
ArgumentNullException | otherCookie 为 null Nothing nullptr unit null 引用(在 Visual Basic 中为 Nothing) 。 |
注释
当执行知识比较运算的性能尤为重要时,可以使用此方法。