BeginFullEnumerationChangeApplication 方法
開始處理一組變更 (復原同步處理的一部分)。
命名空間: Microsoft.Synchronization
組件: Microsoft.Synchronization (在 Microsoft.Synchronization.dll 中)
語法
'宣告
Public Sub BeginFullEnumerationChangeApplication ( _
destinationKnowledge As SyncKnowledge, _
destinationForgottenKnowledge As ForgottenKnowledge, _
sourceForgottenDeleteKnowledge As SyncKnowledge, _
sourceForgottenDeleteForgottenKnowledge As ForgottenKnowledge, _
filterInfo As FilterInfo, _
syncCallbacks As SyncCallbacks, _
sourceDataRetriever As IChangeDataRetriever, _
destinationDataRetriever As IChangeDataRetriever _
)
'用途
Dim instance As ChangeApplicationServices
Dim destinationKnowledge As SyncKnowledge
Dim destinationForgottenKnowledge As ForgottenKnowledge
Dim sourceForgottenDeleteKnowledge As SyncKnowledge
Dim sourceForgottenDeleteForgottenKnowledge As ForgottenKnowledge
Dim filterInfo As FilterInfo
Dim syncCallbacks As SyncCallbacks
Dim sourceDataRetriever As IChangeDataRetriever
Dim destinationDataRetriever As IChangeDataRetriever
instance.BeginFullEnumerationChangeApplication(destinationKnowledge, _
destinationForgottenKnowledge, _
sourceForgottenDeleteKnowledge, _
sourceForgottenDeleteForgottenKnowledge, _
filterInfo, syncCallbacks, sourceDataRetriever, _
destinationDataRetriever)
public void BeginFullEnumerationChangeApplication(
SyncKnowledge destinationKnowledge,
ForgottenKnowledge destinationForgottenKnowledge,
SyncKnowledge sourceForgottenDeleteKnowledge,
ForgottenKnowledge sourceForgottenDeleteForgottenKnowledge,
FilterInfo filterInfo,
SyncCallbacks syncCallbacks,
IChangeDataRetriever sourceDataRetriever,
IChangeDataRetriever destinationDataRetriever
)
public:
void BeginFullEnumerationChangeApplication(
SyncKnowledge^ destinationKnowledge,
ForgottenKnowledge^ destinationForgottenKnowledge,
SyncKnowledge^ sourceForgottenDeleteKnowledge,
ForgottenKnowledge^ sourceForgottenDeleteForgottenKnowledge,
FilterInfo^ filterInfo,
SyncCallbacks^ syncCallbacks,
IChangeDataRetriever^ sourceDataRetriever,
IChangeDataRetriever^ destinationDataRetriever
)
member BeginFullEnumerationChangeApplication :
destinationKnowledge:SyncKnowledge *
destinationForgottenKnowledge:ForgottenKnowledge *
sourceForgottenDeleteKnowledge:SyncKnowledge *
sourceForgottenDeleteForgottenKnowledge:ForgottenKnowledge *
filterInfo:FilterInfo *
syncCallbacks:SyncCallbacks *
sourceDataRetriever:IChangeDataRetriever *
destinationDataRetriever:IChangeDataRetriever -> unit
public function BeginFullEnumerationChangeApplication(
destinationKnowledge : SyncKnowledge,
destinationForgottenKnowledge : ForgottenKnowledge,
sourceForgottenDeleteKnowledge : SyncKnowledge,
sourceForgottenDeleteForgottenKnowledge : ForgottenKnowledge,
filterInfo : FilterInfo,
syncCallbacks : SyncCallbacks,
sourceDataRetriever : IChangeDataRetriever,
destinationDataRetriever : IChangeDataRetriever
)
參數
- destinationKnowledge
型別:Microsoft.Synchronization. . :: . .SyncKnowledge
目的地複寫的目前知識。
- destinationForgottenKnowledge
型別:Microsoft.Synchronization. . :: . .ForgottenKnowledge
目的地複寫目前的被遺忘知識。
- sourceForgottenDeleteKnowledge
型別:Microsoft.Synchronization. . :: . .SyncKnowledge
要處理之變更批次的建立方式知識。
- sourceForgottenDeleteForgottenKnowledge
型別:Microsoft.Synchronization. . :: . .ForgottenKnowledge
來源複寫目前的被遺忘知識。
- filterInfo
型別:Microsoft.Synchronization. . :: . .FilterInfo
目的地提供者所使用之篩選的相關資訊。可為 nullNothingnullptrunitnull 參考 (在 Visual Basic 中為 Nothing)。
- syncCallbacks
型別:Microsoft.Synchronization. . :: . .SyncCallbacks
將會接收有關變更套用事件之通知的回呼。可為 nullNothingnullptrunitnull 參考 (在 Visual Basic 中為 Nothing)。
- sourceDataRetriever
型別:Microsoft.Synchronization. . :: . .IChangeDataRetriever
可用來從來源複寫中擷取項目資料的物件。
- destinationDataRetriever
型別:Microsoft.Synchronization. . :: . .IChangeDataRetriever
可用來從目的地複寫中擷取項目資料的物件。
例外
例外狀況 | 條件 |
---|---|
ArgumentNullException | 必要的參數為 null Nothing nullptr unit null 參考 (在 Visual Basic 中為 Nothing) 。 |
SyncIdFormatMismatchException | 任何指定之知識物件的識別碼格式結構描述與初始化這個物件時所指定的識別碼格式結構描述不符。 |
SyncInvalidOperationException | 變更套用已啟動,但並未針對另一組變更結束。 |
ItemListFilteredFullEnumerationNotSupportedException | filterInfo 參數指定項目篩選正在使用中。目的地提供者無法在復原同步處理期間使用項目篩選。 |
備註
此方法通常會為目的地提供者之 ProcessFullEnumerationChangeBatch 方法所接收的每個變更批次呼叫一次。
在可以設定或計算知識,或者套用或報告變更之前,必須呼叫這個方法。