SqlCeClientSyncProvider.EndTransaction Method
Called by the SyncAgent to end a transaction. This allows the agent to commit a set of changes as an atomic unit.
Namespace: Microsoft.Synchronization.Data.SqlServerCe
Assembly: Microsoft.Synchronization.Data.SqlServerCe (in microsoft.synchronization.data.sqlserverce.dll)
Syntax
'Declaration
<SuppressMessageAttribute("Microsoft.Globalization", "CA1303:DoNotPassLiteralsAsLocalizedParameters", Target:="Microsoft.Synchronization.Data.SyncTracer.Verbose(string)")> _
Public Overrides Sub EndTransaction ( _
commit As Boolean, _
syncSession As SyncSession _
)
'Usage
Dim instance As SqlCeClientSyncProvider
Dim commit As Boolean
Dim syncSession As SyncSession
instance.EndTransaction(commit, syncSession)
[SuppressMessageAttribute("Microsoft.Globalization", "CA1303:DoNotPassLiteralsAsLocalizedParameters", Target="Microsoft.Synchronization.Data.SyncTracer.Verbose(string)")]
public override void EndTransaction (
bool commit,
SyncSession syncSession
)
[SuppressMessageAttribute(L"Microsoft.Globalization", L"CA1303:DoNotPassLiteralsAsLocalizedParameters", Target=L"Microsoft.Synchronization.Data.SyncTracer.Verbose(string)")]
public:
virtual void EndTransaction (
bool commit,
SyncSession^ syncSession
) override
/** @attribute SuppressMessageAttribute("Microsoft.Globalization", "CA1303:DoNotPassLiteralsAsLocalizedParameters", Target="Microsoft.Synchronization.Data.SyncTracer.Verbose(string)") */
public void EndTransaction (
boolean commit,
SyncSession syncSession
)
SuppressMessageAttribute("Microsoft.Globalization", "CA1303:DoNotPassLiteralsAsLocalizedParameters", Target="Microsoft.Synchronization.Data.SyncTracer.Verbose(string)")
public override function EndTransaction (
commit : boolean,
syncSession : SyncSession
)
Parameters
- commit
true to commit the transaction; false to roll back the transaction.
- syncSession
A SyncSession object that contains metadata about the current synchronization session.
See Also
Reference
SqlCeClientSyncProvider Class
SqlCeClientSyncProvider Members
Microsoft.Synchronization.Data.SqlServerCe Namespace