Complement 方法

返回包含在此对象中但未包含在指定知识中的知识。

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

语法

声明
Public Function Complement ( _
    otherKnowledge As SyncKnowledge _
) As SyncKnowledge
用法
Dim instance As SyncKnowledge
Dim otherKnowledge As SyncKnowledge
Dim returnValue As SyncKnowledge

returnValue = instance.Complement(otherKnowledge)
public SyncKnowledge Complement(
    SyncKnowledge otherKnowledge
)
public:
SyncKnowledge^ Complement(
    SyncKnowledge^ otherKnowledge
)
member Complement : 
        otherKnowledge:SyncKnowledge -> SyncKnowledge 
public function Complement(
    otherKnowledge : SyncKnowledge
) : SyncKnowledge

参数

返回值

类型:Microsoft.Synchronization. . :: . .SyncKnowledge
包含在此对象中但未包含在指定知识中的知识。

异常

异常 条件
InvalidOperationException

SyncKnowledge 对象未初始化。

ArgumentOutOfRangeException

otherKnowledge 不是有效值。

ArgumentNullException

otherKnowledge 为 null Nothing nullptr unit null 引用(在 Visual Basic 中为 Nothing) 。

注释

从概念上说,补数运算可视为减法运算。从此对象的知识中减去指定知识并返回该结果。

请参阅

参考

SyncKnowledge类

SyncKnowledge 成员

Microsoft.Synchronization 命名空间