共用方式為


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 命名空間