GetChangeBatch méthode
Obtient un lot de modifications à synchroniser lorsque les paramètres de taille de lot, de connaissance de destination et d'extracteur de données de modification sont fournis.
Espace de noms : Microsoft.Synchronization.Data
Assembly : Microsoft.Synchronization.Data (dans Microsoft.Synchronization.Data.dll)
Syntaxe
'Déclaration
Public Overrides Function GetChangeBatch ( _
batchSize As UInteger, _
destinationKnowledge As SyncKnowledge, _
<OutAttribute> ByRef changeDataRetriever As Object _
) As ChangeBatch
'Utilisation
Dim instance As RelationalSyncProvider
Dim batchSize As UInteger
Dim destinationKnowledge As SyncKnowledge
Dim changeDataRetriever As Object
Dim returnValue As ChangeBatch
returnValue = instance.GetChangeBatch(batchSize, _
destinationKnowledge, changeDataRetriever)
public override ChangeBatch GetChangeBatch(
uint batchSize,
SyncKnowledge destinationKnowledge,
out Object changeDataRetriever
)
public:
virtual ChangeBatch^ GetChangeBatch(
unsigned int batchSize,
SyncKnowledge^ destinationKnowledge,
[OutAttribute] Object^% changeDataRetriever
) override
abstract GetChangeBatch :
batchSize:uint32 *
destinationKnowledge:SyncKnowledge *
changeDataRetriever:Object byref -> ChangeBatch
override GetChangeBatch :
batchSize:uint32 *
destinationKnowledge:SyncKnowledge *
changeDataRetriever:Object byref -> ChangeBatch
public override function GetChangeBatch(
batchSize : uint,
destinationKnowledge : SyncKnowledge,
changeDataRetriever : Object
) : ChangeBatch
Paramètres
- batchSize
Type : System. . :: . .UInt32
Nombre de modifications à synchroniser dans chaque lot de modifications.
- destinationKnowledge
Type : Microsoft.Synchronization. . :: . .SyncKnowledge
Objet SyncKnowledge qui contient la connaissance qu'un fournisseur possède à propos du magasin distant auquel des modifications sont appliquées.
- changeDataRetriever
Type : System. . :: . .Object%
Objet qui sera utilisé pour récupérer les données modifiées.
Valeur de retour
Type : Microsoft.Synchronization. . :: . .ChangeBatch
Objet ChangeBatch qui contient le lot de modifications à synchroniser.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | destinationKnowledge est une null Nothing nullptr unit une référence Null (Nothing dans Visual Basic) . |
ObjectDisposedException | Cet objet RelationalSyncProvider est supprimé. |
DbOutdatedSyncException | L'homologue a rendu les métadonnées obsolètes. |