ChangeApplicationServices.SetDestinationKnowledge 方法

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

语法

声明
Public Sub SetDestinationKnowledge ( _
    destinationKnowledge As SyncKnowledge, _
    destinationForgottenKnowledge As ForgottenKnowledge _
)
用法
Dim instance As ChangeApplicationServices
Dim destinationKnowledge As SyncKnowledge
Dim destinationForgottenKnowledge As ForgottenKnowledge

instance.SetDestinationKnowledge(destinationKnowledge, destinationForgottenKnowledge)
public void SetDestinationKnowledge (
    SyncKnowledge destinationKnowledge,
    ForgottenKnowledge destinationForgottenKnowledge
)
public:
void SetDestinationKnowledge (
    SyncKnowledge^ destinationKnowledge, 
    ForgottenKnowledge^ destinationForgottenKnowledge
)
public void SetDestinationKnowledge (
    SyncKnowledge destinationKnowledge, 
    ForgottenKnowledge destinationForgottenKnowledge
)
public function SetDestinationKnowledge (
    destinationKnowledge : SyncKnowledge, 
    destinationForgottenKnowledge : ForgottenKnowledge
)

参数

  • destinationKnowledge
    当前目标知识。
  • destinationForgottenKnowledge
    当前目标遗忘知识。当要应用的变更不是恢复同步的组成部分时,可为 null 引用(在 Visual Basic 中为 Nothing);否则不能为 null 引用(在 Visual Basic 中为 Nothing)。

异常

异常类型 条件

ArgumentNullException

必需的参数为 null 引用(在 Visual Basic 中为 Nothing)。

SyncInvalidOperationException

变更应用未开始或者已应用当前变更集的变更。

请参阅

参考

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