SqlCeClientSyncProvider.EndTransaction 方法
由 SyncAgent 调用以结束一个事务。这允许代理将一组变更作为一个原子单位来提交。
命名空间: Microsoft.Synchronization.Data.SqlServerCe
程序集: Microsoft.Synchronization.Data.SqlServerCe(在 microsoft.synchronization.data.sqlserverce.dll 中)
语法
声明
<SuppressMessageAttribute("Microsoft.Globalization", "CA1303:DoNotPassLiteralsAsLocalizedParameters", Target:="Microsoft.Synchronization.Data.SyncTracer.Verbose(string)")> _
Public Overrides Sub EndTransaction ( _
commit As Boolean, _
syncSession As SyncSession _
)
用法
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
)
参数
- commit
如果为 true,则提交事务;如果为 false,则回滚事务。
- syncSession
包含有关当前同步会话的元数据的 SyncSession 对象。
请参阅
参考
SqlCeClientSyncProvider 类
SqlCeClientSyncProvider 成员
Microsoft.Synchronization.Data.SqlServerCe 命名空间