GetUpdatedDestinationKnowledge 方法
命名空間: Microsoft.Synchronization
組件: Microsoft.Synchronization (在 Microsoft.Synchronization.dll 中)
語法
'宣告
Public Sub GetUpdatedDestinationKnowledge ( _
<OutAttribute> ByRef destinationKnowledge As SyncKnowledge, _
<OutAttribute> ByRef destinationForgottenKnowledge As ForgottenKnowledge _
)
'用途
Dim instance As ChangeApplicationServices
Dim destinationKnowledge As SyncKnowledge
Dim destinationForgottenKnowledge As ForgottenKnowledge
instance.GetUpdatedDestinationKnowledge(destinationKnowledge, _
destinationForgottenKnowledge)
public void GetUpdatedDestinationKnowledge(
out SyncKnowledge destinationKnowledge,
out ForgottenKnowledge destinationForgottenKnowledge
)
public:
void GetUpdatedDestinationKnowledge(
[OutAttribute] SyncKnowledge^% destinationKnowledge,
[OutAttribute] ForgottenKnowledge^% destinationForgottenKnowledge
)
member GetUpdatedDestinationKnowledge :
destinationKnowledge:SyncKnowledge byref *
destinationForgottenKnowledge:ForgottenKnowledge byref -> unit
public function GetUpdatedDestinationKnowledge(
destinationKnowledge : SyncKnowledge,
destinationForgottenKnowledge : ForgottenKnowledge
)
參數
- destinationKnowledge
型別:Microsoft.Synchronization. . :: . .SyncKnowledge%
傳回包含目前為止已經套用之所有變更的更新目的地知識。
- destinationForgottenKnowledge
型別:Microsoft.Synchronization. . :: . .ForgottenKnowledge%
傳回包含目前為止已經套用之所有變更的更新目的地被遺忘知識。當要套用的變更集不屬於復原同步處理的一部分時,可為 nullNothingnullptrunitnull 參考 (在 Visual Basic 中為 Nothing),否則就不可為 nullNothingnullptrunitnull 參考 (在 Visual Basic 中為 Nothing)。
例外
例外狀況 | 條件 |
---|---|
FullEnumerationExpectedException | 雖然變更集不屬於復原同步處理的一部分,但是 BeginChangeApplication 已用來啟動變更套用,而非使用 BeginFullEnumerationChangeApplication。 |
SyncInvalidOperationException | 變更套用並未啟動。 |
備註
這個方法所傳回的更新知識物件僅包含目的地提供者透過呼叫 ReportItemChangeApplied 或 ReportChangeUnitChangeApplied 報告成功套用的變更。